diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-03-24 09:28:59 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-03-24 09:28:59 +0000 |
commit | a60687f9ba924abcb2934f1e7b603e3885dcd2ef (patch) | |
tree | b606426bf3c1dbacce01ea9f961fc0b4b07fb928 /tty.c | |
parent | bb8457b166635bc8d069012bb33d94e44178bfdc (diff) | |
download | rtmux-a60687f9ba924abcb2934f1e7b603e3885dcd2ef.tar.gz rtmux-a60687f9ba924abcb2934f1e7b603e3885dcd2ef.tar.bz2 rtmux-a60687f9ba924abcb2934f1e7b603e3885dcd2ef.zip |
Handle focus events from the terminal, from Aaron Jensen.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -221,7 +221,7 @@ tty_start_tty(struct tty *tty) tty_puts(tty, "\033[?1000l\033[?1006l\033[?1005l"); if (tty_term_has(tty->term, TTYC_XT)) - tty_puts(tty, "\033[c\033[>4;1m"); + tty_puts(tty, "\033[c\033[>4;1m\033[?1004h"); tty->cx = UINT_MAX; tty->cy = UINT_MAX; @@ -284,7 +284,7 @@ tty_stop_tty(struct tty *tty) tty_raw(tty, "\033[?1000l\033[?1006l\033[?1005l"); if (tty_term_has(tty->term, TTYC_XT)) - tty_raw(tty, "\033[>4m"); + tty_raw(tty, "\033[>4m\033[?1004l"); tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP)); |