diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 07:37:11 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 07:37:11 +0100 |
commit | 61550ac2e005a9cc2b8d540e304067f49c7ace24 (patch) | |
tree | 527698a57d5206d08667ff4f8e888f19a6ca72c5 /tty.c | |
parent | 5d69b9c4a7e8adc570e965189de0e5936fbf8e1c (diff) | |
download | rtmux-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } |