further update
This commit is contained in:
parent
76a3f2c503
commit
81eeb80bc8
@ -58,7 +58,9 @@
|
|||||||
#define streq(a,b) (!strcmp(a,b))
|
#define streq(a,b) (!strcmp(a,b))
|
||||||
#define strneq(a,b,c) (!memcmp(a,b,c))
|
#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;
|
int g_sockfd = -1;
|
||||||
|
|
||||||
void fillline(int y, int xstart, char c) {
|
void fillline(int y, int xstart, char c) {
|
||||||
@ -79,15 +81,14 @@ void decoration(void) {
|
|||||||
|
|
||||||
int g_hardrefresh = 0;
|
int g_hardrefresh = 0;
|
||||||
|
|
||||||
void init_screen(int x) {
|
void init_screen(int x) {
|
||||||
(void)x;
|
(void)x;
|
||||||
|
WINDOW * header, * body, * input;
|
||||||
signal(SIGWINCH, SIG_IGN);
|
signal(SIGWINCH, SIG_IGN);
|
||||||
|
|
||||||
endwin();
|
endwin();
|
||||||
struct winsize w;
|
struct winsize w;
|
||||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
|
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
|
||||||
g_y = w.ws_row;
|
|
||||||
g_x = w.ws_col;
|
|
||||||
initscr();
|
initscr();
|
||||||
raw();
|
raw();
|
||||||
noecho();
|
noecho();
|
||||||
|
0
client/moontalk.rb
Normal file → Executable file
0
client/moontalk.rb
Normal file → Executable file
Loading…
Reference in New Issue
Block a user