General Terminal

GtIsInsert

Check whether Insert mode is on

Syntax

Signature
xBool GtIsInsert( void );

Arguments

No arguments.

Return value

T if Insert mode is on, otherwise F.

Description

Reads or changes the Insert bit in the driver’s keyboard state.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Insert state: %s\n", GtIsInsert() ? "on" : "off" );

   return 0;
}

See also