summaryrefslogtreecommitdiff
path: root/client/term_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/term_linux.c')
-rw-r--r--client/term_linux.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/client/term_linux.c b/client/term_linux.c
deleted file mode 100644
index cdab99d..0000000
--- a/client/term_linux.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifdef W2_HOST_LINUX
-
-#include <fcntl.h>
-#include <sys/ioctl.h>
-#include <termios.h>
-#include <unistd.h>
-
-#include "term.h"
-#include "ui.h"
-
-void w2_term_raw_mode() {
- fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK);
- struct termios term;
- tcgetattr(STDIN_FILENO, &term);
- term.c_lflag &= ~(ECHO | ICANON);
- term.c_cc[VTIME] = 0;
- term.c_cc[VMIN] = 1;
- tcsetattr(STDIN_FILENO, 0, &term);
-}
-
-void w2_term_props() {
- struct winsize window;
- ioctl(STDOUT_FILENO, TIOCGWINSZ, &window);
-
- g_w2_ui_canvas.width = window.ws_col;
- g_w2_ui_canvas.height = window.ws_row;
-}
-
-#endif