KEYLOCKS — Change the state of the keyboard locks

Synopsis

KEYLOCKS [/?] [INSON] [INSOFF] [NUMON] [NUMOFF] [CAPSON] [CAPSOFF] [SCROLLON] [SCROLLOFF]

Options

/?
Display command syntax information.
NUMON
Turn the NUM LOCK on.
NUMOFF
Turn the NUM LOCK off.
CAPSON
Turn the CAPS LOCK on.
CAPSOFF
Turn the CAPS LOCK off.
SCROLLON
Turn the SCROLL LOCK on.
SCROLLOFF
Turn the SCROLL LOCK off.
INSON
Turn the INSERT state on.
INSOFF
Turn the INSERT state off.

Note

On IBM OS/2 the 32-bit Unicode console API that KEYLOCKS uses is layered on top of the operating system's 16-bit VIO, KBD, and MOU subsystems. Unfortunately, the 16-bit KBD subsystem on IBM OS/2 does not allow the console shift state to be modified by a windowed program. KEYLOCKS will only work on IBM OS/2 when run full-screen. This is a limitation of the 16-bit subsystems in IBM OS/2, not of the KEYLOCKS command. Should this deficiency in the operating system ever be fixed, KEYLOCKS will automatically gain the ability to work when running in a windowed console.

Description

The KEYLOCKS command alters the state of the keyboard shift locks (CAPS, NUM, and SCROLL) and insertion state for the current console. Each console has its own shift lock and insertion state, independent of all others.


The 32-bit Command Interpreter is © Copyright Jonathan de Boyne Pollard. "Moral" rights are asserted.