newt_get_screen_size
Fills in the passed references with the current size of the
terminal
&reftitle.description;
voidnewt_get_screen_size
intcols
introws
Fills in the passed references with the current size of the terminal.
&reftitle.parameters;
cols
Number of columns in the terminal
rows
Number of rows in the terminal
&reftitle.returnvalues;
&return.void;
&reftitle.examples;
A newt_get_screen_size example
This code prints out the screen size of your terminal.
]]>
&example.outputs;