Syntax
void GtSetAltScreen( xBool on );
Arguments
on enables the setting with T or disables it with F.
Return value
No return value.
Description
Works with the terminal driver (GT=gtansi); other drivers ignore it. By default the program draws on the normal screen of the terminal, as in xBase: what it wrote stays after it ends. With `T` it draws on the alternate screen, as full-screen programs do: at the end, and while RUN executes another program, the screen of the shell comes back as it was. The whole screen of the program is drawn again after each switch. Check the state with GtIsAltScreen().
Example
#include "xdev-wtui.h"
int main( void )
{
GtSetAltScreen( T );
DispBox( 2, 10, 6, 50, NULL, NULL );
DevPos( 4, 12 );
DevOut( "On the alternate screen; a key ends", NULL );
Inkey( 0, NIL );
return 0;
}