3 void get_term_dimensions(struct winsize
*ws
)
5 char *s
= getenv("LINES");
12 if (ws
->ws_row
&& ws
->ws_col
)
17 if (ioctl(1, TIOCGWINSZ
, ws
) == 0 &&
18 ws
->ws_row
&& ws
->ws_col
)
25 void set_term_quiet_input(struct termios
*old
)
31 tc
.c_lflag
&= ~(ICANON
| ECHO
);
34 tcsetattr(0, TCSANOW
, &tc
);
This page took 0.030647 seconds and 5 git commands to generate.