diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-04-18 08:01:37 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-04-18 08:01:37 +0100 |
commit | 349617a818ec8ed0f1cdedac64f5d9126d920f87 (patch) | |
tree | a0ae953fb39ca36f8eecf228d5a7c2299733b270 /tty.c | |
parent | 87d79e6d367f725d831cf04357e6a354908ad551 (diff) | |
parent | 1d2bd864f25a58ab85a6f9f0a448f3a69d8491cd (diff) | |
download | rtmux-349617a818ec8ed0f1cdedac64f5d9126d920f87.tar.gz rtmux-349617a818ec8ed0f1cdedac64f5d9126d920f87.tar.bz2 rtmux-349617a818ec8ed0f1cdedac64f5d9126d920f87.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1438,15 +1438,19 @@ tty_draw_line(struct tty *tty, struct window_pane *wp, struct screen *s, void tty_sync_start(struct tty *tty) { - if (tty_get_flags(tty) & TERM_SYNC) + if ((~tty->flags & TTY_SYNCING) && (tty_get_flags(tty) & TERM_SYNC)) { tty_puts(tty, "\033P=1s\033\\"); + tty->flags |= TTY_SYNCING; + } } void tty_sync_end(struct tty *tty) { - if (tty_get_flags(tty) & TERM_SYNC) + if (tty_get_flags(tty) & TERM_SYNC) { tty_puts(tty, "\033P=2s\033\\"); + tty->flags &= ~TTY_SYNCING; + } } static int |