General Terminal

GtGetCloseMode

Get the window close mode

Syntax

Signature
int GtGetCloseMode( void );

Arguments

No arguments.

Return value

The current close mode as a CLOSE_* constant.

Description

Read the mode before temporarily changing how the window close button is handled. CLOSE_QUIT closes the application, CLOSE_KEY puts K_CLOSE in the input queue, which Inkey() returns with INKEY_GTEVENT in its mask, and CLOSE_DISABLED disables the close action.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Close mode: %d\n", GtGetCloseMode() );

   return 0;
}

See also