diff options
| author | Richard M. Stallman | 1995-11-11 23:48:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-11 23:48:29 +0000 |
| commit | 24fab5adf3f0535bc2f715f41fefdda5430955a4 (patch) | |
| tree | c573688eae5ebea033df6579a32945ebe4307514 /src | |
| parent | f6fd109b050984bcabfd16fa9dfb5c2b1585ddb3 (diff) | |
| download | emacs-24fab5adf3f0535bc2f715f41fefdda5430955a4.tar.gz emacs-24fab5adf3f0535bc2f715f41fefdda5430955a4.zip | |
(dos_menubar_clock_displayed): New variable.
(check_timer): Erase the clock if it has been turned off.
Diffstat (limited to 'src')
| -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; | |||
| 2341 | #include "sysselect.h" | 2341 | #include "sysselect.h" |
| 2342 | 2342 | ||
| 2343 | static int last_ti_sec = -1; | 2343 | static int last_ti_sec = -1; |
| 2344 | static int dos_menubar_clock_displayed = 0; | ||
| 2344 | 2345 | ||
| 2345 | static void | 2346 | static void |
| 2346 | check_timer (t) | 2347 | check_timer (t) |
| @@ -2383,6 +2384,13 @@ check_timer (t) | |||
| 2383 | 2384 | ||
| 2384 | len = sprintf (clock_str, "%2d.%02d.%02d", hour, min, t->ti_sec); | 2385 | len = sprintf (clock_str, "%2d.%02d.%02d", hour, min, t->ti_sec); |
| 2385 | dos_direct_output (0, screen_size_X - len - 1, clock_str, len); | 2386 | dos_direct_output (0, screen_size_X - len - 1, clock_str, len); |
| 2387 | dos_menubar_clock_displayed = 1; | ||
| 2388 | } | ||
| 2389 | else if (dos_menubar_clock_displayed) | ||
| 2390 | { | ||
| 2391 | /* Erase last displayed time. */ | ||
| 2392 | dos_direct_output (0, screen_size_X - 9, " ", 8); | ||
| 2393 | dos_menubar_clock_displayed = 0; | ||
| 2386 | } | 2394 | } |
| 2387 | 2395 | ||
| 2388 | if (!NILP (Vdos_timer_hooks)) | 2396 | if (!NILP (Vdos_timer_hooks)) |