Parcourir la source

further update

master
Emil Williams il y a 3 mois
Parent
révision
81eeb80bc8
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 5432DB986FDBCF8A
2 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. +5
    -4
      client/moontalk-cli.c
  2. +0
    -0
      client/moontalk.rb

+ 5
- 4
client/moontalk-cli.c Voir le fichier

@@ -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 Voir le fichier


Chargement…
Annuler
Enregistrer