Sfoglia il codice sorgente

further update

master
Emil Williams 3 mesi fa
parent
commit
81eeb80bc8
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 5432DB986FDBCF8A
2 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. +5
    -4
      client/moontalk-cli.c
  2. +0
    -0
      client/moontalk.rb

+ 5
- 4
client/moontalk-cli.c Vedi 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) {
@@ -79,15 +81,14 @@ void decoration(void) {

int g_hardrefresh = 0;

void init_screen(int x) {
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
- 0
client/moontalk.rb Vedi File


Loading…
Annulla
Salva