From 61550ac2e005a9cc2b8d540e304067f49c7ace24 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 24 Apr 2020 07:37:11 +0100 Subject: Add feature and capabilities for focus reporting. Also document AX and XT even though they aren't tmux's. --- tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tty.c') 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"); } -- cgit