diff options
author | Frederic Culot <calcurse@culot.org> | 2008-09-20 12:47:06 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2008-09-20 12:47:06 +0000 |
commit | 96b858b8bcb8ddb9a7938c08d2e9577545e85bfd (patch) | |
tree | 116c0e30a2cba24eccf29727b21547978d754b47 /src/calcurse.c | |
parent | 62077a18f5ca760dc7798470ca4c457f905c7cd5 (diff) | |
download | calcurse-96b858b8bcb8ddb9a7938c08d2e9577545e85bfd.tar.gz calcurse-96b858b8bcb8ddb9a7938c08d2e9577545e85bfd.zip |
More work on ical import. Macros to handle errors and to display messages in both command-line and curses mode added
Diffstat (limited to 'src/calcurse.c')
-rwxr-xr-x | src/calcurse.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index 4474b4d..f274ffb 100755 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -1,4 +1,4 @@ -/* $calcurse: calcurse.c,v 1.66 2008/09/15 20:40:22 culot Exp $ */ +/* $calcurse: calcurse.c,v 1.67 2008/09/20 12:47:06 culot Exp $ */ /* * Calcurse - text-based organizer @@ -382,6 +382,13 @@ main (int argc, char **argv) io_save_cal (&conf); break; + case 'I': + case 'i': /* Import function */ + erase_status_bar (); + io_import_data (IO_MODE_INTERACTIVE, IO_IMPORT_ICAL, &conf); + do_storage = true; + break; + case 'X': case 'x': /* Export function */ erase_status_bar (); |