summaryrefslogtreecommitdiff
path: root/src/wins.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/wins.c
parent62077a18f5ca760dc7798470ca4c457f905c7cd5 (diff)
downloadcalcurse-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/wins.c')
-rwxr-xr-xsrc/wins.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wins.c b/src/wins.c
index 5cab994..f76bc36 100755
--- a/src/wins.c
+++ b/src/wins.c
@@ -1,4 +1,4 @@
-/* $calcurse: wins.c,v 1.16 2008/04/19 21:05:15 culot Exp $ */
+/* $calcurse: wins.c,v 1.17 2008/09/20 12:47:06 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -116,6 +116,9 @@ wins_init (void)
keypad (win[APP].p, TRUE);
keypad (win[TOD].p, TRUE);
keypad (win[STA].p, TRUE);
+
+ /* Notify that the curses mode is now launched. */
+ ui_mode = UI_CURSES;
}
/*
@@ -463,12 +466,14 @@ wins_launch_external (const char *file, const char *cmd)
notify_stop_main_thread ();
def_prog_mode ();
endwin ();
+ ui_mode = UI_CMDLINE;
clear ();
refresh ();
system (p);
reset_prog_mode ();
clearok (curscr, TRUE);
curs_set (0);
+ ui_mode = UI_CURSES;
refresh ();
if (notify_bar ())
notify_start_main_thread ();