diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-20 13:38:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-20 13:38:49 +0000 |
commit | e5d3fc31f38ff9636ea963cb46df8d419218dcd5 (patch) | |
tree | 0b33405d84bf09fc936c45ed6e45e7aa66f79b41 /usr.bin/tmux/tty.c | |
parent | b6ebde8d3afae589199e27016f4c8f060b8ca07f (diff) |
Change the Sync capability to be a string instead of a flag.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 107436ce6c4..442365402f9 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.359 2020/04/20 13:25:36 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.360 2020/04/20 13:38:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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; } } |