Change the Sync capability to be a string instead of a flag.

This commit is contained in:
nicm
2020-04-20 13:38:48 +00:00
parent c91b4b2e14
commit 135bb1edee
4 changed files with 5 additions and 6 deletions

4
tty.c
View File

@ -1428,7 +1428,7 @@ void
tty_sync_start(struct tty *tty)
{
if ((~tty->flags & TTY_SYNCING) && tty_term_has(tty->term, TTYC_SYNC)) {
tty_puts(tty, "\033P=1s\033\\");
tty_putcode1(tty, TTYC_SYNC, 1);
tty->flags |= TTY_SYNCING;
}
}
@ -1437,7 +1437,7 @@ void
tty_sync_end(struct tty *tty)
{
if ((tty->flags & TTY_SYNCING) && tty_term_has(tty->term, TTYC_SYNC)) {
tty_puts(tty, "\033P=2s\033\\");
tty_putcode1(tty, TTYC_SYNC, 2);
tty->flags &= ~TTY_SYNCING;
}
}