General Terminal

GtSetStdOutConsole

Choose where OutStd() sends output

Syntax

Signature
void GtSetStdOutConsole( xBool on );

Arguments

on enables the setting with T or disables it with F.

Return value

No return value.

Description

Controls whether OutStd() writes to the terminal window. With the setting disabled, OutStd() writes to stdout. Check the resulting state with GtIsStdOutConsole().

Example

gtsetstdoutconsole.c
#include "xdev-wtui.h"

int main( void )
{
   xBool previous = GtIsStdOutConsole();

   GtSetStdOutConsole( T );
   OutStd( "Output in the terminal window." );
   Inkey( 2, NIL );
   GtSetStdOutConsole( previous );

   return 0;
}

See also