diff options
author | nicm <nicm> | 2022-11-11 08:37:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-11-11 08:37:55 +0000 |
commit | fe475bd856ff1f98bf8a4cd9b6aedd5da81a7e3c (patch) | |
tree | ba0e97250decc80f35884724c7cbf57b980aa935 /tty.c | |
parent | 079f48e8a6131b2ef46b370c0905252d29d9d815 (diff) | |
download | rtmux-fe475bd856ff1f98bf8a4cd9b6aedd5da81a7e3c.tar.gz rtmux-fe475bd856ff1f98bf8a4cd9b6aedd5da81a7e3c.tar.bz2 rtmux-fe475bd856ff1f98bf8a4cd9b6aedd5da81a7e3c.zip |
Parse primary device attributes as well as secondary and add a SIXEL
flag (not used yet), from Anindya Mukherjee.
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 |