General Terminal

GtIsScrollLock

Check whether Scroll Lock is on

Syntax

Signature
xBool GtIsScrollLock( void );

Arguments

No arguments.

Return value

T if Scroll Lock is on, otherwise F.

Description

Uses the Scroll Lock bit in the driver’s keyboard state. System-level changes depend on driver support.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Scroll Lock state: %s\n", GtIsScrollLock() ? "on" : "off" );

   return 0;
}

See also