]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/perf/util/term.c
7 void get_term_dimensions(struct winsize
*ws
)
9 char *s
= getenv("LINES");
13 s
= getenv("COLUMNS");
16 if (ws
->ws_row
&& ws
->ws_col
)
21 if (ioctl(1, TIOCGWINSZ
, ws
) == 0 &&
22 ws
->ws_row
&& ws
->ws_col
)
29 void set_term_quiet_input(struct termios
*old
)
35 tc
.c_lflag
&= ~(ICANON
| ECHO
);
38 tcsetattr(0, TCSANOW
, &tc
);