aboutsummaryrefslogtreecommitdiff
path: root/tty-term.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-16 16:01:35 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-16 16:01:35 +0100
commit5e38d262579662f33570c520b6661e15c215f702 (patch)
tree99b52461946c4a128d6a475f81ae0d4a8ce022c7 /tty-term.c
parentb3cadf826034ec356d0bf3dda26b7699bff4649c (diff)
parent5ec80bd249a37147207ec2ef420086336ccf78a8 (diff)
downloadrtmux-5e38d262579662f33570c520b6661e15c215f702.tar.gz
rtmux-5e38d262579662f33570c520b6661e15c215f702.tar.bz2
rtmux-5e38d262579662f33570c520b6661e15c215f702.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tty-term.c b/tty-term.c
index e556df6f..0e4dc236 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -263,6 +263,7 @@ static const struct tty_term_code_entry tty_term_codes[] = {
[TTYC_SMUL] = { TTYCODE_STRING, "smul" },
[TTYC_SMXX] = { TTYCODE_STRING, "smxx" },
[TTYC_SS] = { TTYCODE_STRING, "Ss" },
+ [TTYC_SYNC] = { TTYCODE_FLAG, "Sync" },
[TTYC_TC] = { TTYCODE_FLAG, "Tc" },
[TTYC_TSL] = { TTYCODE_STRING, "tsl" },
[TTYC_U8] = { TTYCODE_NUMBER, "U8" },
@@ -538,6 +539,10 @@ tty_term_find(char *name, int fd, char **cause)
tty_term_has(term, TTYC_SETRGBB)))
term->flags |= TERM_RGBCOLOURS;
+ /* Set flag if terminal has synchronized updates. */
+ if (tty_term_flag(term, TTYC_SYNC))
+ term->flags |= TERM_SYNC;
+
/*
* Terminals without xenl (eat newline glitch) wrap at at $COLUMNS - 1
* rather than $COLUMNS (the cursor can never be beyond $COLUMNS - 1).