aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-17 12:01:30 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-17 12:01:30 +0100
commitabeb31dd3d189dd3c880b1925b286c296ac5a869 (patch)
tree1f014a411b694ff67dc23217a6c7666ac847fe30
parent413c4cfd1bdf40cfbb65400abe7edff97ba821c9 (diff)
parent7f2925a01de5da0416dd2589ee080f61650f2da9 (diff)
downloadrtmux-abeb31dd3d189dd3c880b1925b286c296ac5a869.tar.gz
rtmux-abeb31dd3d189dd3c880b1925b286c296ac5a869.tar.bz2
rtmux-abeb31dd3d189dd3c880b1925b286c296ac5a869.zip
Merge branch 'obsd-master'
-rw-r--r--tty-keys.c5
-rw-r--r--tty.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index dfea15b2..10c9c670 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -61,6 +61,9 @@ struct tty_default_key_raw {
key_code key;
};
static const struct tty_default_key_raw tty_default_raw_keys[] = {
+ /* Application escape. */
+ { "\033O[", '\033' },
+
/*
* Numeric keypad. Just use the vt100 escape sequences here and always
* put the terminal into keypad_xmit mode. Translation of numbers
@@ -1065,7 +1068,7 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
case 'M': /* mintty */
flags |= (TERM_256COLOURS|TERM_RGBCOLOURS);
break;
- case 'T': /* tmux - if newer will have the DSR as well */
+ case 'T': /* tmux - new versons reply to DSR which will set RGB */
flags |= (TERM_UTF8|TERM_256COLOURS);
break;
case 'U': /* rxvt-unicode */
diff --git a/tty.c b/tty.c
index 06ae6d31..4090a115 100644
--- a/tty.c
+++ b/tty.c
@@ -340,6 +340,7 @@ tty_start_tty(struct tty *tty)
tty->flags |= TTY_FOCUS;
tty_puts(tty, "\033[?1004h");
}
+ tty_puts(tty, "\033[?7727h");
}
evtimer_set(&tty->start_timer, tty_start_timer_callback, tty);
@@ -426,6 +427,7 @@ tty_stop_tty(struct tty *tty)
tty->flags &= ~TTY_FOCUS;
tty_raw(tty, "\033[?1004l");
}
+ tty_raw(tty, "\033[?7727l");
}
if (tty_use_margin(tty))