-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get signal handling into the land of defined behavior
As part of that also: - Extract function `redraw_screen` - Use `select(2)` to wait until stdin can be read without blocking - Increment n before putting new data in, not after, to prevents redrawing issues with a rightmost empty column. - Fix handling of sigwinch while in "waiting for stdin" mode: would jump into a broken plot display previously - Fix handling of sigwinch while in "stdin closed" mode: would produce empty new columns on the right side for every signal received.
- Loading branch information
Showing
1 changed file
with
197 additions
and
59 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