Support the application escape sequence mintty (means tmux doesn't have

to delay to wait for Escape).
This commit is contained in:
nicm
2020-04-17 09:06:10 +00:00
parent 5aba26f2cb
commit 7f2925a01d
2 changed files with 6 additions and 1 deletions

2
tty.c
View File

@ -340,6 +340,7 @@ tty_start_tty(struct tty *tty)
tty->flags |= TTY_FOCUS;
tty_puts(tty, "\033[?1004h");
}
tty_puts(tty, "\033[?7727h");
}
evtimer_set(&tty->start_timer, tty_start_timer_callback, tty);
@ -426,6 +427,7 @@ tty_stop_tty(struct tty *tty)
tty->flags &= ~TTY_FOCUS;
tty_raw(tty, "\033[?1004l");
}
tty_raw(tty, "\033[?7727l");
}
if (tty_use_margin(tty))