src/pspg.c
void
refresh_terminal_size(void)
{
	struct winsize size;

	if (ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *) &size) >= 0)
	{
		int		maxy, maxx;

		resize_term(size.ws_row, size.ws_col);
		log_row("new terminal size %d %d", size.ws_row, size.ws_col);
		log_row("info: LINES: %d, COLS: %d", LINES, COLS);

		getmaxyx(stdscr, maxy, maxx);
		log_row("info: stdscr - maxy: %d, maxx: %d", maxy, maxx);
	}
}
/*
 * Refresh ncurses internal metric when terminal was resized
 */
Refresh ncurses internal metric when terminal was resized
Refresh ncurses internal metric when terminal was resized
void
refresh_terminal_size(void)
{
	struct winsize size;
	if (ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *) &size) >= 0)
	{
		int		maxy, maxx;
		resize_term(size.ws_row, size.ws_col);
		log_row("new terminal size %d %d", size.ws_row, size.ws_col);
		log_row("info: LINES: %d, COLS: %d", LINES, COLS);
		getmaxyx(stdscr, maxy, maxx);
		log_row("info: stdscr - maxy: %d, maxx: %d", maxy, maxx);
	}
}
void refresh_terminal_size ( void ) { struct winsize size ; if ( ioctl ( STDOUT_FILENO , TIOCGWINSZ , ( char * ) & size ) >= 0 ) { int maxy , maxx ; resize_term ( size . ws_row , size . ws_col ) ; log_row ( " " , size . ws_row , size . ws_col ) ; log_row ( " " , LINES , COLS ) ; getmaxyx ( stdscr , maxy , maxx ) ; log_row ( " " , maxy , maxx ) ; } }
Refresh ncurses internal metric when terminal was resized
Refresh ncurses internal metric when terminal was resized