General Terminal

GtSetAltEnter

Configure the Alt+Enter full-screen shortcut

Syntax

Signature
void GtSetAltEnter( xBool on );

Arguments

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

Return value

No return value.

Description

Controls the driver’s full-screen keyboard shortcut. Check the resulting state with GtIsAltEnter().

Example

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

#include <stdio.h>

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

   GtSetAltEnter( T );
   printf( "Alt Enter state: %s\n", GtIsAltEnter() ? "on" : "off" );
   GtSetAltEnter( previous );

   return 0;
}

See also