diff options
author | 2020-05-16 14:16:25 +0000 | |
---|---|---|
committer | 2020-05-16 14:16:25 +0000 | |
commit | ecd9db25cb59f1a1a1a43054d625d381badcdca8 (patch) | |
tree | 0250071e69211d7abacf857a22f244a0f7323739 /usr.bin/tmux/tty.c | |
parent | Add an attribute for ACS. (diff) | |
download | wireguard-openbsd-ecd9db25cb59f1a1a1a43054d625d381badcdca8.tar.xz wireguard-openbsd-ecd9db25cb59f1a1a1a43054d625d381badcdca8.zip |
Remove support for iTerm2's DSR 1337 extension and use the CSI > q
extension now supported by a few different terminals.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 725acc6262a..f2c60db58e1 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.363 2020/04/21 06:32:40 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.364 2020/05/16 14:16:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -287,7 +287,7 @@ tty_start_timer_callback(__unused int fd, __unused short events, void *data) struct client *c = tty->client; log_debug("%s: start timer fired", c->name); - tty->flags |= (TTY_HAVEDA|TTY_HAVEDSR); + tty->flags |= (TTY_HAVEDA|TTY_HAVEXDA); } void @@ -361,10 +361,10 @@ tty_send_requests(struct tty *tty) if (tty_term_flag(tty->term, TTYC_XT)) { if (~tty->flags & TTY_HAVEDA) tty_puts(tty, "\033[>c"); - if (~tty->flags & TTY_HAVEDSR) - tty_puts(tty, "\033[1337n"); + if (~tty->flags & TTY_HAVEXDA) + tty_puts(tty, "\033[>q"); } else - tty->flags |= (TTY_HAVEDA|TTY_HAVEDSR); + tty->flags |= (TTY_HAVEDA|TTY_HAVEXDA); } void |