aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-04-24 07:37:11 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-04-24 07:37:11 +0100
commit61550ac2e005a9cc2b8d540e304067f49c7ace24 (patch)
tree527698a57d5206d08667ff4f8e888f19a6ca72c5 /tty.c
parent5d69b9c4a7e8adc570e965189de0e5936fbf8e1c (diff)
downloadrtmux-61550ac2e005a9cc2b8d540e304067f49c7ace24.tar.gz
rtmux-61550ac2e005a9cc2b8d540e304067f49c7ace24.tar.bz2
rtmux-61550ac2e005a9cc2b8d540e304067f49c7ace24.zip
Add feature and capabilities for focus reporting. Also document AX and XT even
though they aren't tmux's.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 7e044540..548c837d 100644
--- a/tty.c
+++ b/tty.c
@@ -333,7 +333,7 @@ tty_start_tty(struct tty *tty)
if (tty_term_flag(tty->term, TTYC_XT)) {
if (options_get_number(global_options, "focus-events")) {
tty->flags |= TTY_FOCUS;
- tty_puts(tty, "\033[?1004h");
+ tty_raw(tty, tty_term_string(tty->term, TTYC_ENFCS));
}
tty_puts(tty, "\033[?7727h");
}
@@ -420,7 +420,7 @@ tty_stop_tty(struct tty *tty)
if (tty_term_flag(tty->term, TTYC_XT)) {
if (tty->flags & TTY_FOCUS) {
tty->flags &= ~TTY_FOCUS;
- tty_raw(tty, "\033[?1004l");
+ tty_raw(tty, tty_term_string(tty->term, TTYC_DSFCS));
}
tty_raw(tty, "\033[?7727l");
}