CTRACE(tfp, "Window size changed from (%d,%d) to (%d,%d)\n", old_lines, old_cols, LYlines, LYcols);
CTRACE((tfp, "Window size changed from (%d,%d) to (%d,%d)\n", old_lines, old_cols, LYlines, LYcols)); #if defined(CAN_SWITCH_DISPLAY_CHARSET) && defined(CAN_AUTODETECT_DISPLAY_CHARSET)  if (current_char_set != auto_display_charset) Switch_Display_Charset(current_char_set, SWITCH_DISPLAY_CHARSET_SIZECHANGE); #endif
PUBLIC void size_change ARGS1(	int,		sig GCC_UNUSED){    int old_lines = LYlines;    int old_cols = LYcols;#ifdef USE_SLANG#if defined(VMS) || defined(UNIX)    SLtt_get_screen_size();#endif /* VMS || UNIX */    LYlines = SLtt_Screen_Rows;    LYcols  = SLtt_Screen_Cols;#ifdef SLANG_MBCS_HACK    PHYSICAL_SLtt_Screen_Cols = LYcols;    SLtt_Screen_Cols = (LYcols * 6);#endif /* SLANG_MBCS_HACK */    if (sig == 0)	/*	 *  Called from start_curses().	 */	return;#else /* Curses: */#if HAVE_SIZECHANGE#ifdef TIOCGSIZE    struct ttysize win;#else#ifdef TIOCGWINSZ    struct winsize win;#endif /* TIOCGWINSZ */#endif /* TIOCGSIZE */#ifdef TIOCGSIZE    if (ioctl(0, TIOCGSIZE, &win) == 0) {	if (win.ts_lines != 0) {	    LYlines = win.ts_lines;	}	if (win.ts_cols != 0) {	    LYcols = win.ts_cols;	}    }#else#ifdef TIOCGWINSZ    if (ioctl(0, TIOCGWINSZ, &win) == 0) {	if (win.ws_row != 0) {	    LYlines = win.ws_row;	}	if (win.ws_col != 0) {	    LYcols = win.ws_col;	}    }#endif /* TIOCGWINSZ */#endif /* TIOCGSIZE */#endif /* HAVE_SIZECHANGE */    if (LYlines <= 0)	LYlines = 24;    if (LYcols <= 0)	LYcols = 80;#endif /* USE_SLANG */    /*     *	Check if the screen size has actually changed. - AJL     */    if (LYlines != old_lines || LYcols != old_cols) {	recent_sizechange = TRUE;	CTRACE(tfp, "Window size changed from (%d,%d) to (%d,%d)\n",		old_lines, old_cols, LYlines, LYcols);    }#ifdef SIGWINCH    (void)signal (SIGWINCH, size_change);#endif /* SIGWINCH */    return;}