mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Merge branch 'obsd-master'
This commit is contained in:
8
tty.c
8
tty.c
@ -356,6 +356,11 @@ tty_start_tty(struct tty *tty)
|
||||
if (tty_term_has(tty->term, TTYC_ENBP))
|
||||
tty_putcode(tty, TTYC_ENBP);
|
||||
|
||||
if (tty->term->flags & TERM_VT100LIKE) {
|
||||
/* Subscribe to theme changes and request theme now. */
|
||||
tty_puts(tty, "\033[?2031h\033[?996n");
|
||||
}
|
||||
|
||||
evtimer_set(&tty->start_timer, tty_start_timer_callback, tty);
|
||||
evtimer_add(&tty->start_timer, &tv);
|
||||
|
||||
@ -468,6 +473,9 @@ tty_stop_tty(struct tty *tty)
|
||||
tty_raw(tty, tty_term_string(tty->term, TTYC_DSMG));
|
||||
tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP));
|
||||
|
||||
if (tty->term->flags & TERM_VT100LIKE)
|
||||
tty_raw(tty, "\033[?2031l");
|
||||
|
||||
setblocking(c->fd, 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user