From 4179b4242411f41a22d9743b4eff3b19ef69b3e8 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 13 Oct 2016 20:27:27 +0000 Subject: 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. --- window-clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window-clock.c') 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) { -- cgit