sync: adding mode 2026 for the sync patch to allow syncing to be controlled by programs ref. #179

This commit is contained in:
Bakkeby 2025-07-08 10:42:24 +02:00
parent dd9784883f
commit 4000b47a10

9
st.c
View file

@ -2039,6 +2039,15 @@ tsetmode(int priv, int set, const int *args, int narg)
MODBIT(term.mode, set, MODE_SIXEL_CUR_RT); MODBIT(term.mode, set, MODE_SIXEL_CUR_RT);
break; break;
#endif // SIXEL_PATCH #endif // SIXEL_PATCH
#if SYNC_PATCH
case 2026:
if (set == 1) {
tsync_begin();
} else if (set == 2) {
tsync_end();
}
break;
#endif // SYNC_PATCH
default: default:
fprintf(stderr, fprintf(stderr,
"erresc: unknown private set/reset mode %d\n", "erresc: unknown private set/reset mode %d\n",