How to have the screen not flicker (like a strobe light) upon redraw? [Due to CSI 1049h] #20466

Open
opened 2026-01-31 07:14:42 +00:00 by claunia · 0 comments
Owner

Originally created by @kjpgit on GitHub (Sep 12, 2023).

Windows Terminal version

Version: 1.17.11461.0

Windows build number

Version 10.0.19045.3324

Other Software

Steps to reproduce

PageUp/PageDown in vim flashes the screen (including the status bar, which isn't changing)

Moving cursor up/down in Vilark flashes the entire screen, even when 99% of it isn't changed.

I am not issuing any clear commands in Vilark. Only redrawing the entire screen each frame, then issuing a flush(), with a 4KB buffer size.

Flicker issue does not happen when running inside tmux.

I have tried using a single monitor, tried Atlas on and off, nothing makes a difference.

So, what is the guidance for software devs on how to have zero flicker?

Expected Behavior

I feel like a "naive" terminal app that redraws the entire frame shouldn't have flicker, because windows terminal should be doing double buffering.

Actual Behavior

Screen flickers like a strobe light. (screen turns white temporarily between redraws)

Originally created by @kjpgit on GitHub (Sep 12, 2023). ### Windows Terminal version Version: 1.17.11461.0 ### Windows build number Version 10.0.19045.3324 ### Other Software * vim 8.2 in wsl2 * my app Vilark https://github.com/kjpgit/vilark (C# AOT Compiled) ### Steps to reproduce PageUp/PageDown in vim flashes the screen (including the status bar, which isn't changing) Moving cursor up/down in Vilark flashes the entire screen, even when 99% of it isn't changed. I am not issuing any clear commands in Vilark. Only redrawing the entire screen each frame, then issuing a flush(), with a 4KB buffer size. Flicker issue does not happen when running inside tmux. I have tried using a single monitor, tried Atlas on and off, nothing makes a difference. So, what is the guidance for software devs on how to have zero flicker? ### Expected Behavior I feel like a "naive" terminal app that redraws the entire frame shouldn't have flicker, because windows terminal should be doing double buffering. ### Actual Behavior Screen flickers like a strobe light. (screen turns white temporarily between redraws)
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:14:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20466