vhs icon indicating copy to clipboard operation
vhs copied to clipboard

Add support for synchronized output to prevent tearing

Open JakeWharton opened this issue 1 year ago • 3 comments

If I run an application which continuously sends large chunks of text + ANSI control sequences to stdout, I sometimes see the cursor jump to the middle of the rendering. The application is enabling mode 2026 and sending the end-of-frame sequences. VHS should track whether this mode is enabled and not re-render a frame until it sees the end-of-frame sequence.

More details available at https://gist.github.com/christianparpart/d8a62cc1ab659194337d73e399004036

JakeWharton avatar Aug 21 '24 14:08 JakeWharton

Is this Windows? I can't reproduce this on Linux and Mac.

Delta456 avatar Sep 14 '24 10:09 Delta456

I'm on Mac. I can try to write a repo. I suspect two echos each having half the sync marker with a sleep in between might do it.

JakeWharton avatar Sep 15 '24 19:09 JakeWharton

Please do

Delta456 avatar Oct 20 '24 09:10 Delta456