.\"***************************************************************************
-.\" Copyright 2018-2021,2022 Thomas E. Dickey *
+.\" Copyright 2018-2022,2023 Thomas E. Dickey *
.\" Copyright 1998-2015,2017 Free Software Foundation, Inc. *
.\" *
.\" Permission is hereby granted, free of charge, to any person obtaining a *
.\"
.\" Author: Thomas E. Dickey 1996-on
.\"
-.\" $Id: resizeterm.3x,v 1.33 2022/02/20 00:32:18 tom Exp $
-.TH resizeterm 3X 2022-02-19 "ncurses 6.4" "Library calls"
+.\" $Id: resizeterm.3x,v 1.36 2023/07/01 15:46:10 tom Exp $
+.TH resizeterm 3X 2023-07-01 "ncurses 6.4" "Library calls"
.de bP
.ie n .IP \(bu 4
.el .IP \(bu 2
.br
\fBint resizeterm(int \fIlines\fB, int \fIcolumns\fB);\fR
.SH DESCRIPTION
-.PP
This is an extension to the curses library.
It provides callers with a hook into the \fBncurses\fP data to resize windows,
primarily for use by programs running in an X Window terminal (e.g., xterm)
see \fBSIGWINCH\fP, and proper layout will rely upon the application.
.SH FUNCTIONS
.SS resizeterm
-.PP
The function \fBresizeterm\fP resizes the standard and current windows
(i.e., \fBstdscr\fP and \fBcurscr\fP)
to the specified dimensions, and adjusts other bookkeeping data used by
the \fBncurses\fP library that record the window dimensions
such as the \fBLINES\fP and \fBCOLS\fP variables.
.SS resize_term
-.PP
Most of the work for \fBresizeterm\fP is
done by the inner function \fBresize_term\fP.
The outer function \fBresizeterm\fP adds bookkeeping
extending to the corresponding limit, regardless of whether the
screen has shrunk or grown.
.SS is_term_resized
-.PP
A support function \fBis_term_resized\fP is provided so that applications
can check if the \fBresize_term\fP function would modify the window structures.
It returns \fBTRUE\fP if the windows would be modified,
Thus, even if a \fBSIGWINCH\fP is received,
no screen size change may be recorded.
.SH PORTABILITY
-.PP
It is possible to resize the screen with SVr4 curses,
by
.bP