Mercurial > emacs
changeset 13520:8c7a3533a688
(dos_menubar_clock_displayed): New variable.
(check_timer): Erase the clock if it has been turned off.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 11 Nov 1995 23:48:29 +0000 |
parents | aee6ea2166bc |
children | 13e55327ef5e |
files | src/msdos.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/msdos.c Sat Nov 11 22:12:30 1995 +0000 +++ b/src/msdos.c Sat Nov 11 23:48:29 1995 +0000 @@ -2341,6 +2341,7 @@ #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 @@ 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))