summaryrefslogtreecommitdiffstats
path: root/window-clock.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-13 20:27:27 +0000
committernicm <nicm>2016-10-13 20:27:27 +0000
commit4179b4242411f41a22d9743b4eff3b19ef69b3e8 (patch)
treec50ccb7dac6c4ddc71a666aeaaba5c489e703946 /window-clock.c
parent1bd08f903b8f70b0dd9aad577f830d944b969516 (diff)
Add support for BCE (background colour erase). This makes various escape
sequences (notable EL and ED but also IL, DL, ICH, DCH) create blank cells using the current background colour rather than the default colour. On modern systems BCE doesn't really have many benefits, but most other terminals now support it, some (lazy) applications rely on it, and it is not hard to include now that we have pane background colours anyway. Mostly written by Sean Haugh.
Diffstat (limited to 'window-clock.c')
-rw-r--r--window-clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-clock.c b/window-clock.c
index c80e9af7..97121108 100644
--- a/window-clock.c
+++ b/window-clock.c
@@ -221,7 +221,7 @@ window_clock_draw_screen(struct window_pane *wp)
} else
strftime(tim, sizeof tim, "%H:%M", tm);
- screen_write_clearscreen(&ctx);
+ screen_write_clearscreen(&ctx, 8);
if (screen_size_x(s) < 6 * strlen(tim) || screen_size_y(s) < 6) {
if (screen_size_x(s) >= strlen(tim) && screen_size_y(s) != 0) {