-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#6): buffer output to reduce flicker
It turns out that the default TTY writer in Zig is not buffered, so each write call required a syscall which led to the delay and visible flicker in the UI. This just wraps the writer in a BufferedWriter to buffer up to 4096 bytes before writing. Even with 50 lines of display and multiple highlights, zf does not flicker anymore! Closes #6
- Loading branch information
1 parent
9ade195
commit cc7c2c3
Showing
1 changed file
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters