aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-20 13:38:48 +0000
committernicm <nicm>2020-04-20 13:38:48 +0000
commit135bb1edeeab3faae8001100aa7c173be9aa91e1 (patch)
tree893c6ff71e5d72a2df4ad59530c198848cbb0cc6 /tty.c
parentc91b4b2e142b5b3fc9ca88afec6bfa9b2711e01b (diff)
downloadrtmux-135bb1edeeab3faae8001100aa7c173be9aa91e1.tar.gz
rtmux-135bb1edeeab3faae8001100aa7c173be9aa91e1.tar.bz2
rtmux-135bb1edeeab3faae8001100aa7c173be9aa91e1.zip
Change the Sync capability to be a string instead of a flag.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index dfc35873..e1c629ec 100644
--- a/tty.c
+++ b/tty.c
@@ -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;
}
}