diff options
Diffstat (limited to 'client/term_linux.c')
-rw-r--r-- | client/term_linux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/term_linux.c b/client/term_linux.c index 2a88d6c..cdab99d 100644 --- a/client/term_linux.c +++ b/client/term_linux.c @@ -1,9 +1,9 @@ #ifdef W2_HOST_LINUX #include <fcntl.h> -#include <unistd.h> -#include <termios.h> #include <sys/ioctl.h> +#include <termios.h> +#include <unistd.h> #include "term.h" #include "ui.h" @@ -14,7 +14,7 @@ void w2_term_raw_mode() { tcgetattr(STDIN_FILENO, &term); term.c_lflag &= ~(ECHO | ICANON); term.c_cc[VTIME] = 0; - term.c_cc[VMIN] = 1; + term.c_cc[VMIN] = 1; tcsetattr(STDIN_FILENO, 0, &term); } @@ -22,7 +22,7 @@ void w2_term_props() { struct winsize window; ioctl(STDOUT_FILENO, TIOCGWINSZ, &window); - g_w2_ui_canvas.width = window.ws_col; + g_w2_ui_canvas.width = window.ws_col; g_w2_ui_canvas.height = window.ws_row; } |