General Terminal

GtSetInsert

Change the Insert state

Syntax

Signature
void GtSetInsert( xBool on );

Arguments

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

Return value

No return value.

Description

Reads or changes the Insert bit in the driver’s keyboard state. Check the resulting state with GtIsInsert().

Example

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

#include <stdio.h>

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

   GtSetInsert( T );
   printf( "Insert state: %s\n", GtIsInsert() ? "on" : "off" );
   GtSetInsert( previous );

   return 0;
}

See also