瀏覽代碼

further update

master
Emil Williams 3 月之前
父節點
當前提交
81eeb80bc8
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 5432DB986FDBCF8A
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. +5
    -4
      client/moontalk-cli.c
  2. +0
    -0
      client/moontalk.rb

+ 5
- 4
client/moontalk-cli.c 查看文件

@@ -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 查看文件


Loading…
取消
儲存