summaryrefslogtreecommitdiff
path: root/client/term_linux.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-29 22:35:04 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-29 22:35:04 +0200
commit555e5d2c0ce77dd1e031690c98ec9a1366182347 (patch)
tree69a505a23ae6ca5d0951e8f832f9895fcbb88b83 /client/term_linux.c
parent87d8b0ceb349e101b693cf43336a98647f4b92dc (diff)
`make format`
Diffstat (limited to 'client/term_linux.c')
-rw-r--r--client/term_linux.c8
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;
}