aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-16 18:01:32 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-16 18:01:32 +0100
commit21eb2ba4191b797b9f980e207756b21eb09da948 (patch)
treec2944d48b8af08e0ecf92d2891175a7c111e0727 /tty.c
parent5e38d262579662f33570c520b6661e15c215f702 (diff)
parent2e347d6a384a5cfa9e18058393043e623a10c584 (diff)
downloadrtmux-21eb2ba4191b797b9f980e207756b21eb09da948.tar.gz
rtmux-21eb2ba4191b797b9f980e207756b21eb09da948.tar.bz2
rtmux-21eb2ba4191b797b9f980e207756b21eb09da948.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tty.c b/tty.c
index 239d1cde..06ae6d31 100644
--- a/tty.c
+++ b/tty.c
@@ -364,7 +364,7 @@ tty_send_requests(struct tty *tty)
if (tty_term_flag(tty->term, TTYC_XT)) {
if (~tty->flags & TTY_HAVEDA)
- tty_puts(tty, "\033[c");
+ tty_puts(tty, "\033[>c");
if (~tty->flags & TTY_HAVEDSR)
tty_puts(tty, "\033[1337n");
} else
@@ -1175,8 +1175,7 @@ tty_clear_area(struct tty *tty, struct window_pane *wp, u_int py, u_int ny,
* background colour isn't default (because it doesn't work
* after SGR 0).
*/
- if ((tty_get_flags(tty) & TERM_DECFRA) &&
- !COLOUR_DEFAULT(bg)) {
+ if ((tty_get_flags(tty) & TERM_DECFRA) && !COLOUR_DEFAULT(bg)) {
xsnprintf(tmp, sizeof tmp, "\033[32;%u;%u;%u;%u$x",
py + 1, px + 1, py + ny, px + nx);
tty_puts(tty, tmp);