Searched refs:win (Results 1 – 1 of 1) sorted by relevance
1744 get_win_size (int fd, struct winsize *win) in get_win_size() argument1746 int err = ioctl (fd, TIOCGWINSZ, (char *) win); in get_win_size()1753 struct winsize win; in set_window_size() local1755 if (get_win_size (STDIN_FILENO, &win)) in set_window_size()1759 memset (&win, 0, sizeof (win)); in set_window_size()1763 win.ws_row = rows; in set_window_size()1765 win.ws_col = cols; in set_window_size()1789 if (win.ws_row == 0 || win.ws_col == 0) in set_window_size()1793 ttysz.ts_lines = win.ws_row; in set_window_size()1794 ttysz.ts_cols = win.ws_col; in set_window_size()[all …]