diff options
author | 2017-01-07 15:28:13 +0000 | |
---|---|---|
committer | 2017-01-07 15:28:13 +0000 | |
commit | e16c16982e9481fc6dce130c45ab1780a392bdd7 (patch) | |
tree | 3f61c5ba44fc0732fbca89e3652017b23ab76bb4 /usr.bin/tmux/window-clock.c | |
parent | Add and remove some blank lines, in order to make X509_verify_cert() (diff) | |
download | wireguard-openbsd-e16c16982e9481fc6dce130c45ab1780a392bdd7.tar.xz wireguard-openbsd-e16c16982e9481fc6dce130c45ab1780a392bdd7.zip |
Add support for the OSC 4 and OSC 104 palette setting escape sequences,
from S Gilles.
Diffstat (limited to 'usr.bin/tmux/window-clock.c')
-rw-r--r-- | usr.bin/tmux/window-clock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/window-clock.c b/usr.bin/tmux/window-clock.c index d0e17b51b43..79c40e7d619 100644 --- a/usr.bin/tmux/window-clock.c +++ b/usr.bin/tmux/window-clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-clock.c,v 1.21 2016/10/13 20:27:27 nicm Exp $ */ +/* $OpenBSD: window-clock.c,v 1.22 2017/01/07 15:28:13 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -230,6 +230,7 @@ window_clock_draw_screen(struct window_pane *wp) screen_write_cursormove(&ctx, x, y); memcpy(&gc, &grid_default_cell, sizeof gc); + gc.flags |= GRID_FLAG_NOPALETTE; gc.fg = colour; screen_write_puts(&ctx, &gc, "%s", tim); } @@ -242,6 +243,7 @@ window_clock_draw_screen(struct window_pane *wp) y = (screen_size_y(s) / 2) - 3; memcpy(&gc, &grid_default_cell, sizeof gc); + gc.flags |= GRID_FLAG_NOPALETTE; gc.bg = colour; for (ptr = tim; *ptr != '\0'; ptr++) { if (*ptr >= '0' && *ptr <= '9') |