Skip to content

Commit

Permalink
fix: trailing chars on TUI stdout
Browse files Browse the repository at this point in the history
The buffer wasn't flushed so the cleanup line clears never printed to
the terminal.
  • Loading branch information
natecraddock committed Mar 17, 2022
1 parent cea3dea commit 6a717d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui.zig
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,6 @@ pub fn cleanUp(terminal: *Terminal) !void {
}
terminal.clearLine();
terminal.cursorUp(terminal.height);

try terminal.writer.flush();
}

0 comments on commit 6a717d1

Please sign in to comment.