minicurses: remove now unused code - sfeed_curses - sfeed curses UI (now part o… | |
git clone git://git.codemadness.org/sfeed_curses | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 65449180719dd2c4d27f7370695b9e4eee9e5b72 | |
parent 830e63da7d15879638f082e241ee489b895e7782 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 21 Mar 2021 01:45:24 +0100 | |
minicurses: remove now unused code | |
Diffstat: | |
M minicurses.h | 13 ------------- | |
1 file changed, 0 insertions(+), 13 deletions(-) | |
--- | |
diff --git a/minicurses.h b/minicurses.h | |
@@ -1,7 +1,5 @@ | |
#include <sys/ioctl.h> | |
-#undef ERR | |
-#define ERR (-1) | |
#undef OK | |
#define OK (0) | |
@@ -20,20 +18,9 @@ const char *enter_bold_mode = "\x1b[1m"; | |
const char *enter_dim_mode = "\x1b[2m"; | |
const char *enter_reverse_mode = "\x1b[7m"; | |
-int columns = 80, lines = 24; | |
- | |
int | |
setupterm(char *term, int fildes, int *errret) | |
{ | |
- struct winsize winsz; | |
- | |
- if (ioctl(fildes, TIOCGWINSZ, &winsz) == -1) | |
- return ERR; | |
- if (winsz.ws_col > 0) | |
- columns = winsz.ws_col; | |
- if (winsz.ws_row > 0) | |
- lines = winsz.ws_row; | |
- | |
return OK; | |
} | |