From 4000b47a107f6b42ef073be7130d7615095aa72d Mon Sep 17 00:00:00 2001 From: Bakkeby Date: Tue, 8 Jul 2025 10:42:24 +0200 Subject: [PATCH] sync: adding mode 2026 for the sync patch to allow syncing to be controlled by programs ref. #179 --- st.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/st.c b/st.c index 6a7a614..d5d6eca 100644 --- a/st.c +++ b/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",