Syntax
xBool SetMode( int rows, int cols );
Arguments
rows, cols Requested numbers of text rows and columns. Use NIL to keep either current dimension.
Return value
T if the driver accepts the mode, otherwise F.
Description
Request a different terminal grid size in rows and columns. Use `NIL` for a dimension that should stay at its current value. The active driver must accept the requested mode. After a successful call, use `MaxRow()` and `MaxCol()` to lay out the text screen with the resulting bounds.
Example
#include "xdev-wtui.h"
int main( void )
{
if( !SetMode( 25, 80 ) )
return 1;
DispOut( "25 rows, 80 columns", NULL );
Inkey( 0, NIL );
return 0;
}