further update

This commit is contained in:
Emil Williams 2024-02-09 21:23:37 +00:00
parent 76a3f2c503
commit 81eeb80bc8
No known key found for this signature in database
GPG Key ID: 5432DB986FDBCF8A
2 changed files with 5 additions and 4 deletions

View File

@ -58,7 +58,9 @@
#define streq(a,b) (!strcmp(a,b))
#define strneq(a,b,c) (!memcmp(a,b,c))
int g_y, g_x;
#define g_y COLS
#define g_x LINES
int g_sockfd = -1;
void fillline(int y, int xstart, char c) {
@ -81,13 +83,12 @@ int g_hardrefresh = 0;
void init_screen(int x) {
(void)x;
WINDOW * header, * body, * input;
signal(SIGWINCH, SIG_IGN);
endwin();
struct winsize w;
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
g_y = w.ws_row;
g_x = w.ws_col;
initscr();
raw();
noecho();

0
client/moontalk.rb Normal file → Executable file
View File