Topic : The GFA-Basic Compendium
Author : GFA Systemtechnik GmbH
Version : GFABasic.HYP v2.98 (12/31/2023)
Subject : Documentation/Programming
Nodes : 899
Index Size : 28056
HCP-Version : 3
Compiled on : Atari
@charset : atarist
@lang :
@default : Document not found
@help : Help
@options : +g -i -s +z
@width : 75
@hostname : STRNGSRV
@hostname : CAB
@hostname : HIGHWIRE
@hostname : THING
View Ref-FileKEYPAD n
n: iexp
The numerical expression n is evaluated bit by bit and has the following
meaning:
Bit Meaning 0 1
0 NumLock On Off
1 NumLock Not switchable Switchable
2 CTRL-KEYPAD Normal Cursor
3 ALT-KEYPAD Normal ASCII
4 KEYDEF without ALT Off On
5 KEYDEF with ALT Off On
With bit 0 set the keypad will act as a 'PC' keypad with NumLock off, i.e. it
responds with cursor movements.
With bit 1 set the 'PC' NumLock mode can be toggled with Control and '-',
otherwise it cannot. Control and '(' also toggles NumLock mode. When NumLock
is on a circumflex (^) appears under the Atari logo in the Menu bar.
With bit 2 set, NumLock is effectively switched off while the Control key is
held down. Thus Control-4 (on the keypad) produces cursor movements.
With bit 3 set ASCII values for characters can be typed in with the ALTernate
key held down. When ALT is released, the character appears.
With bit 4 set, the character strings assigned with KEYDEF to the keys F1 to
F10 and Shift-F1 to Shift-F10 are output when the key is pressed.
With bit 5 set the ALTernate key must also be held down.
When turned on, the Atari ST is effectively configured to KEYPAD 0. With
in operation, the default keypad mode is decimal 46, i.e. bits 1, 2,
3, and 5 are set (&X101110).