OSBYTE &CA
OSBYTE &CA (202) - Read/Write Keyboard Status
This byte determines the current state of the keyboard modifier keys b0 = BBC/Electron: reserved RISC OS: Alt pressed b1 = BBC/Electron: reserved RISC OS: Scroll Lock set b2 = BBC/Electron: reserved RISC OS: Num Lock set b3 = Shift pressed b4 = Caps lock off b5 = Shift lock off (ie, b5-4=01: Shift Lock on, 10: Caps Lock on, 11: No lock) b6 = Electron: FN pressed BBC/RISC OS: Control pressed b7 = Shift enable (Shift Caps or Shift Inverse) With Caps Lock on and Shift Enable off, Shift has no effect on letter keys.
Examples
- *FX 202,16 turns Shift Lock on
- *FX 202,32 turns Caps Lock on
- *FX 202,48 turns Caps Lock/Shift Lock off
- *FX 202,160 turns Shift Caps on
Jgharston 22:48, 26 May 2009 (UTC)
Jgharston (talk) 20:18, 13 June 2016 (UTC)