We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505e622 commit a5e89e6Copy full SHA for a5e89e6
kirc.c
@@ -328,13 +328,13 @@ main(int argc, char **argv) {
328
329
for (;;) {
330
int poll_res = poll(fds, 2, -1);
331
- ioctl(0, TIOCGWINSZ, &window_dims);
332
- cmax = window_dims.ws_col;
333
if (poll_res != -1) {
334
if (fds[0].revents & POLLIN) {
335
handle_user_input();
336
}
337
if (fds[1].revents & POLLIN && (keyboard_hit() < 1)) {
+ ioctl(0, TIOCGWINSZ, &window_dims);
+ cmax = window_dims.ws_col;
338
int rc = handle_server_message();
339
if (rc != 0) {
340
if (rc == -2) return EXIT_FAILURE;
0 commit comments