aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2017-03-08 14:34:35 +0000
committernicm <nicm>2017-03-08 14:34:35 +0000
commit78ca1b02656808908e2c5dc19909966c3d3bb555 (patch)
treec4cde3850a18b500fe16f0eca7bf9fa19aa4610f /tty.c
parent6b2009ad725b662853b8e94aee233fabdc5490f9 (diff)
downloadrtmux-78ca1b02656808908e2c5dc19909966c3d3bb555.tar.gz
rtmux-78ca1b02656808908e2c5dc19909966c3d3bb555.tar.bz2
rtmux-78ca1b02656808908e2c5dc19909966c3d3bb555.zip
Always send smkx to the terminal outside, the keys we get from terminfo
are the keys when it is on.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tty.c b/tty.c
index acc7ab54..0ed6125e 100644
--- a/tty.c
+++ b/tty.c
@@ -235,7 +235,7 @@ tty_start_tty(struct tty *tty)
tty_putcode(tty, TTYC_SMCUP);
- tty_putcode(tty, TTYC_RMKX);
+ tty_putcode(tty, TTYC_SMKX);
if (tty_use_acs(tty))
tty_putcode(tty, TTYC_ENACS);
tty_putcode(tty, TTYC_CLEAR);
@@ -573,12 +573,6 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s)
tty_puts(tty, "\033[?1006l");
}
}
- if (changed & MODE_KKEYPAD) {
- if (mode & MODE_KKEYPAD)
- tty_putcode(tty, TTYC_SMKX);
- else
- tty_putcode(tty, TTYC_RMKX);
- }
if (changed & MODE_BRACKETPASTE) {
if (mode & MODE_BRACKETPASTE)
tty_puts(tty, "\033[?2004h");