diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-11-11 23:48:29 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-11-11 23:48:29 +0000 |
commit | b1302bd06cc8f6865c72d8b709b38970e2db4a68 (patch) | |
tree | a1d45cc5023e37bea945cc6d46e75a9aa4bfdc9f /src/msdos.c | |
parent | 69629cf3883882a1df843968b189e019117f3e02 (diff) | |
download | emacs-b1302bd06cc8f6865c72d8b709b38970e2db4a68.tar.gz |
(dos_menubar_clock_displayed): New variable.
(check_timer): Erase the clock if it has been turned off.
Diffstat (limited to 'src/msdos.c')
-rw-r--r-- | src/msdos.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/msdos.c b/src/msdos.c index 57ffae9bd8a..f3a1e1da12d 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -2341,6 +2341,7 @@ int run_dos_timer_hooks = 0; #include "sysselect.h" static int last_ti_sec = -1; +static int dos_menubar_clock_displayed = 0; static void check_timer (t) @@ -2383,6 +2384,13 @@ check_timer (t) len = sprintf (clock_str, "%2d.%02d.%02d", hour, min, t->ti_sec); dos_direct_output (0, screen_size_X - len - 1, clock_str, len); + dos_menubar_clock_displayed = 1; + } + else if (dos_menubar_clock_displayed) + { + /* Erase last displayed time. */ + dos_direct_output (0, screen_size_X - 9, " ", 8); + dos_menubar_clock_displayed = 0; } if (!NILP (Vdos_timer_hooks)) |