General Terminal

GtIsStdErrConsole

Check whether standard error is routed to the window

Syntax

Signature
xBool GtIsStdErrConsole( void );

Arguments

No arguments.

Return value

T if standard error is routed to the window, otherwise F.

Description

Controls whether OutErr() writes to the terminal window. With the setting disabled, OutErr() writes to stderr.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Std Err Console state: %s\n", GtIsStdErrConsole() ? "on" : "off" );

   return 0;
}

See also