mirror of
https://github.com/tmux/tmux.git
synced 2025-01-08 17:18:47 +00:00
Change the Sync capability to be a string instead of a flag.
This commit is contained in:
parent
c91b4b2e14
commit
135bb1edee
2
tmux.1
2
tmux.1
@ -5572,7 +5572,7 @@ If
|
|||||||
.Em Se
|
.Em Se
|
||||||
is not set, \&Ss with argument 0 will be used to reset the cursor style instead.
|
is not set, \&Ss with argument 0 will be used to reset the cursor style instead.
|
||||||
.It Em \&Sync
|
.It Em \&Sync
|
||||||
Show that the terminal supports synchronized updates.
|
Start (parameter is 1) or end (parameter is 2) a synchronized update.
|
||||||
.It Em \&Tc
|
.It Em \&Tc
|
||||||
Indicate that the terminal supports the
|
Indicate that the terminal supports the
|
||||||
.Ql direct colour
|
.Ql direct colour
|
||||||
|
@ -35,7 +35,6 @@
|
|||||||
* Also:
|
* Also:
|
||||||
* - XT is used to decide whether to send DA and DSR,
|
* - XT is used to decide whether to send DA and DSR,
|
||||||
* - DECSLRM and DECFRA use a flag instead of capabilities.
|
* - DECSLRM and DECFRA use a flag instead of capabilities.
|
||||||
* - Sync is a flag rather than a string capability.
|
|
||||||
* - UTF-8 is a separate flag on the client; needed for unattached clients.
|
* - UTF-8 is a separate flag on the client; needed for unattached clients.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -148,7 +147,7 @@ static struct tty_feature tty_feature_ccolour = {
|
|||||||
|
|
||||||
/* Terminal supports synchronized updates. */
|
/* Terminal supports synchronized updates. */
|
||||||
static const char *tty_feature_sync_capabilities[] = {
|
static const char *tty_feature_sync_capabilities[] = {
|
||||||
"Sync",
|
"Sync=\\EP=%p1%ds\\E\\\\",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
static struct tty_feature tty_feature_sync = {
|
static struct tty_feature tty_feature_sync = {
|
||||||
|
@ -259,7 +259,7 @@ static const struct tty_term_code_entry tty_term_codes[] = {
|
|||||||
[TTYC_SMUL] = { TTYCODE_STRING, "smul" },
|
[TTYC_SMUL] = { TTYCODE_STRING, "smul" },
|
||||||
[TTYC_SMXX] = { TTYCODE_STRING, "smxx" },
|
[TTYC_SMXX] = { TTYCODE_STRING, "smxx" },
|
||||||
[TTYC_SS] = { TTYCODE_STRING, "Ss" },
|
[TTYC_SS] = { TTYCODE_STRING, "Ss" },
|
||||||
[TTYC_SYNC] = { TTYCODE_FLAG, "Sync" },
|
[TTYC_SYNC] = { TTYCODE_STRING, "Sync" },
|
||||||
[TTYC_TC] = { TTYCODE_FLAG, "Tc" },
|
[TTYC_TC] = { TTYCODE_FLAG, "Tc" },
|
||||||
[TTYC_TSL] = { TTYCODE_STRING, "tsl" },
|
[TTYC_TSL] = { TTYCODE_STRING, "tsl" },
|
||||||
[TTYC_U8] = { TTYCODE_NUMBER, "U8" },
|
[TTYC_U8] = { TTYCODE_NUMBER, "U8" },
|
||||||
|
4
tty.c
4
tty.c
@ -1428,7 +1428,7 @@ void
|
|||||||
tty_sync_start(struct tty *tty)
|
tty_sync_start(struct tty *tty)
|
||||||
{
|
{
|
||||||
if ((~tty->flags & TTY_SYNCING) && tty_term_has(tty->term, TTYC_SYNC)) {
|
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;
|
tty->flags |= TTY_SYNCING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1437,7 +1437,7 @@ void
|
|||||||
tty_sync_end(struct tty *tty)
|
tty_sync_end(struct tty *tty)
|
||||||
{
|
{
|
||||||
if ((tty->flags & TTY_SYNCING) && tty_term_has(tty->term, TTYC_SYNC)) {
|
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;
|
tty->flags &= ~TTY_SYNCING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user