sync: adding mode 2026 for the sync patch to allow syncing to be controlled by programs ref. #179
This commit is contained in:
parent
4da3d6d87c
commit
f7354190f7
1 changed files with 9 additions and 0 deletions
9
st.c
9
st.c
|
|
@ -2039,6 +2039,15 @@ tsetmode(int priv, int set, const int *args, int narg)
|
|||
MODBIT(term.mode, set, MODE_SIXEL_CUR_RT);
|
||||
break;
|
||||
#endif // SIXEL_PATCH
|
||||
#if SYNC_PATCH
|
||||
case 2026:
|
||||
if (set == 1) {
|
||||
tsync_begin();
|
||||
} else if (set == 2) {
|
||||
tsync_end();
|
||||
}
|
||||
break;
|
||||
#endif // SYNC_PATCH
|
||||
default:
|
||||
fprintf(stderr,
|
||||
"erresc: unknown private set/reset mode %d\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue