General Terminal

GtSetMinimized

Minimize or restore the terminal window

Syntax

Signature
void GtSetMinimized( xBool on );

Arguments

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

Return value

No return value.

Description

Controls minimization of the terminal window through the window manager. Check the resulting state with GtIsMinimized().

Example

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

#include <stdio.h>

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

   GtSetMinimized( T );
   printf( "Minimized state: %s\n", GtIsMinimized() ? "on" : "off" );
   Inkey( 2, NIL );
   GtSetMinimized( previous );

   return 0;
}

See also