diff options
| author | dam <dam@gudinoff> | 2023-10-24 21:27:58 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-10-24 21:27:58 +0100 |
| commit | 70d3b82ca7817a066120ff88deb8b56e90d454ca (patch) | |
| tree | 790bb209e207249a34ea55027f45c85076f181d8 /TUI/unix.jai | |
| parent | 456be46bc0d4d7a0643616c269fbcb2b6f935197 (diff) | |
| download | task-time-tracker-70d3b82ca7817a066120ff88deb8b56e90d454ca.tar.zst task-time-tracker-70d3b82ca7817a066120ff88deb8b56e90d454ca.zip | |
Prototype of process_input that does not block reading.
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 523aeb5..1bfa400 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] = 1; - raw_tio_mode.c_cc[Control_Chars.VTIME] = 0; + raw_tio_mode.c_cc[Control_Chars.VMIN] = 0; + raw_tio_mode.c_cc[Control_Chars.VTIME] = 1; tcsetattr(STDIN_FILENO, 0, *raw_tio_mode); // TODO Log on error. } |
