summaryrefslogtreecommitdiffstats
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-09-20 12:47:06 +0000
committerFrederic Culot <calcurse@culot.org>2008-09-20 12:47:06 +0000
commit96b858b8bcb8ddb9a7938c08d2e9577545e85bfd (patch)
tree116c0e30a2cba24eccf29727b21547978d754b47 /src/calcurse.c
parent62077a18f5ca760dc7798470ca4c457f905c7cd5 (diff)
downloadcalcurse-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-xsrc/calcurse.c9
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 ();