diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-11-11 10:01:09 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-11-11 10:01:09 +0000 |
commit | 1536b7e206e51488c37379df22b8c58ef3febc28 (patch) | |
tree | 82b6a369e35326c35c7f6149fbdcd348cfb8ce60 /tty.c | |
parent | e46d0632a5ed8e9fbc90ae49039e84450fba4925 (diff) | |
parent | 20da16737715a183a019f1072735614615b5fd1c (diff) | |
download | rtmux-1536b7e206e51488c37379df22b8c58ef3febc28.tar.gz rtmux-1536b7e206e51488c37379df22b8c58ef3febc28.tar.bz2 rtmux-1536b7e206e51488c37379df22b8c58ef3febc28.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -299,9 +299,9 @@ tty_start_timer_callback(__unused int fd, __unused short events, void *data) struct client *c = tty->client; log_debug("%s: start timer fired", c->name); - if ((tty->flags & (TTY_HAVEDA|TTY_HAVEXDA)) == 0) + if ((tty->flags & (TTY_HAVEDA|TTY_HAVEDA2|TTY_HAVEXDA)) == 0) tty_update_features(tty); - tty->flags |= (TTY_HAVEDA|TTY_HAVEXDA); + tty->flags |= (TTY_HAVEDA|TTY_HAVEDA2|TTY_HAVEXDA); } void @@ -363,12 +363,14 @@ tty_send_requests(struct tty *tty) return; if (tty->term->flags & TERM_VT100LIKE) { - if (~tty->flags & TTY_HAVEDA) + if (~tty->term->flags & TTY_HAVEDA) + tty_puts(tty, "\033[c"); + if (~tty->flags & TTY_HAVEDA2) tty_puts(tty, "\033[>c"); if (~tty->flags & TTY_HAVEXDA) tty_puts(tty, "\033[>q"); } else - tty->flags |= (TTY_HAVEDA|TTY_HAVEXDA); + tty->flags |= (TTY_HAVEDA|TTY_HAVEDA2|TTY_HAVEXDA); } void |