Syntax
void GtSetScrollLock( xBool on );
Arguments
on enables the setting with T or disables it with F.
Return value
No return value.
Description
Uses the Scroll Lock bit in the driver’s keyboard state. System-level changes depend on driver support. Check the resulting state with GtIsScrollLock().
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
xBool previous = GtIsScrollLock();
GtSetScrollLock( T );
printf( "Scroll Lock state: %s\n", GtIsScrollLock() ? "on" : "off" );
GtSetScrollLock( previous );
return 0;
}