27 #if defined (HAVE_UNISTD_H) 31 #include <sys/ioctl.h> 36 #if defined (GWINSZ_IN_SYS_IOCTL) && !defined (TIOCGWINSZ) 37 # include <sys/ioctl.h> 41 #if defined (STRUCT_WINSIZE_IN_TERMIOS) && !defined (STRUCT_WINSIZE_IN_SYS_IOCTL) 46 #if !defined (STRUCT_WINSIZE_IN_TERMIOS) && !defined (STRUCT_WINSIZE_IN_SYS_IOCTL) 47 # if defined (HAVE_SYS_STREAM_H) 48 # include <sys/stream.h> 50 # if defined (HAVE_SYS_PTEM_H) 51 # include <sys/ptem.h> 54 # if defined (HAVE_SYS_PTE_H) 62 #define input_tty() (shell_tty != -1) ? shell_tty : fileno (stderr) 70 #if defined (READLINE) 80 #if defined (TIOCGWINSZ) 85 if (tty >= 0 && (ioctl (tty, TIOCGWINSZ, &win) == 0) &&
86 win.ws_row > 0 && win.ws_col > 0)
89 #if defined (READLINE) void rl_set_screen_size(int rows, int cols)
void get_new_window_size(int from_sig, int *rp, int *cp)
void sh_set_lines_and_columns __P((int, int))
void sh_set_lines_and_columns()