General Terminal

GtSetStdErrConsole

Choose where OutErr() sends output

Syntax

Signature
void GtSetStdErrConsole( xBool on );

Arguments

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

Return value

No return value.

Description

Controls whether OutErr() writes to the terminal window. With the setting disabled, OutErr() writes to stderr. Check the resulting state with GtIsStdErrConsole().

Example

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

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

   GtSetStdErrConsole( T );
   OutErr( "A diagnostic in the terminal window." );
   Inkey( 2, NIL );
   GtSetStdErrConsole( previous );

   return 0;
}

See also