General Terminal

GtIsStdOutConsole

Check whether standard output is routed to the window

Syntax

Signature
xBool GtIsStdOutConsole( void );

Arguments

No arguments.

Return value

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

Description

Controls whether OutStd() writes to the terminal window. With the setting disabled, OutStd() writes to stdout.

Example

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

#include <stdio.h>

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

   return 0;
}

See also