aboutsummaryrefslogtreecommitdiff
path: root/TUI/unix.jai
diff options
context:
space:
mode:
Diffstat (limited to 'TUI/unix.jai')
-rw-r--r--TUI/unix.jai4
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.
}