diff options
author | nicm <nicm> | 2016-10-13 20:27:27 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-13 20:27:27 +0000 |
commit | 4179b4242411f41a22d9743b4eff3b19ef69b3e8 (patch) | |
tree | c50ccb7dac6c4ddc71a666aeaaba5c489e703946 /window-clock.c | |
parent | 1bd08f903b8f70b0dd9aad577f830d944b969516 (diff) | |
download | rtmux-4179b4242411f41a22d9743b4eff3b19ef69b3e8.tar.gz rtmux-4179b4242411f41a22d9743b4eff3b19ef69b3e8.tar.bz2 rtmux-4179b4242411f41a22d9743b4eff3b19ef69b3e8.zip |
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.c | 2 |
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) { |