diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-16 15:14:26 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-16 15:14:26 +0000 |
commit | b39aa7527bdf30a627a49c7cad64ffa4444c0f10 (patch) | |
tree | 37ef7f69e8a77319fa4819db9e1669bdb08152f4 /usr.bin/tmux/tty.c | |
parent | 678ad617516931a13b099db8fd64228b8168c247 (diff) |
Send secondary device attributes instead of primary which gives us a bit
more useful information on some terminals.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 38c81ecea9a..87d6d098f54 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.350 2020/04/16 14:25:35 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.351 2020/04/16 15:14:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |