diff options
| author | dam <dam@gudinoff> | 2023-10-16 01:23:40 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-10-16 01:23:40 +0100 |
| commit | bdaba41cbe7f10c750c31b66dd2696e6b6ea7436 (patch) | |
| tree | 42a7d291dfe8708c67e73d885824babf72fcd441 /TUI/unix.jai | |
| parent | 3b9f4f990ab0e865ec8e6277381e5aff0b178665 (diff) | |
| download | task-time-tracker-bdaba41cbe7f10c750c31b66dd2696e6b6ea7436.tar.zst task-time-tracker-bdaba41cbe7f10c750c31b66dd2696e6b6ea7436.zip | |
Improved input reading to wait for event instead of pooling.
Diffstat (limited to 'TUI/unix.jai')
| -rw-r--r-- | TUI/unix.jai | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TUI/unix.jai b/TUI/unix.jai index 1bfa400..523aeb5 100644 --- a/TUI/unix.jai +++ b/TUI/unix.jai @@ -135,8 +135,8 @@ OS_prepare_terminal :: () { raw_tio_mode.c_lflag &= ~(.ECHO | .ECHONL | .ICANON | .ISIG | .IEXTEN); raw_tio_mode.c_cflag &= ~(.CSIZE | .PARENB); raw_tio_mode.c_cflag |= .CS8; - raw_tio_mode.c_cc[Control_Chars.VMIN] = 0; - raw_tio_mode.c_cc[Control_Chars.VTIME] = 1; + raw_tio_mode.c_cc[Control_Chars.VMIN] = 1; + raw_tio_mode.c_cc[Control_Chars.VTIME] = 0; tcsetattr(STDIN_FILENO, 0, *raw_tio_mode); // TODO Log on error. } |
