aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-04-23 10:22:27 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-04-23 10:29:03 +0100
commitc74572da92d6ede88c04bd65e67e82f682ea2ff0 (patch)
tree1df9340361d605473d43aa32cdaad1e245d1168b /tty.c
parente94a15b3d63e84a413a4975d0c1632d4761f4eec (diff)
downloadrtmux-c74572da92d6ede88c04bd65e67e82f682ea2ff0.tar.gz
rtmux-c74572da92d6ede88c04bd65e67e82f682ea2ff0.tar.bz2
rtmux-c74572da92d6ede88c04bd65e67e82f682ea2ff0.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 'tty.c')
-rw-r--r--tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index 98a557b5..5d7d2c0d 100644
--- a/tty.c
+++ b/tty.c
@@ -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