RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_Byte 221 - 228 Key Codes

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_Byte
» OS_Byte 221 - 228
» Key Codes

Notes

Function keys generate these codes un-shifted.

Key Code
Print &80
F1 – F9 &81 – &89
End/Copy &8B
Left &8C
Right &8D
Down &8E
Up *8F
Page Down &9E
Page Up &9F
F10 – F12 &CA – &CC
Insert &CD

Shift EORs the code with &10
Control EORs the code with &20

The cursor keys and copy only generate these codes if set up to act as function keys by calling OS_Byte 4 with R1=2.

&80 + Buffer value gives the character codes used by the Wimp. When reset occurs &CA (i.e. F10) is inserted into the input buffer.

Unlisted codes cannot be generated by the main keyboard, but can occur by:

  • Using these OS_Byte calls to set keys to generate them
  • Changing the numeric keypad base with OS_Byte 238
  • Inserting bytes into the keyboard buffer with OS_Byte 138 and OS_Byte 153.
  • Receiving bytes from the serial port (see also OS_Byte 181 to control serial input interpretation)

Note that page up and down effectively behave as Up and Down with shift toggled. In fact, it is impossible to distinguish shift/control combinations of page up and down with shift/control combinations of cursor up and down, which can prove frustrating.

See also

  • Character Codes
  • OS_Byte
  • OS_Byte 4
  • OS_Byte 138
  • OS_Byte 153
  • OS_Byte 181
  • OS_Byte 221 - 228
Created on November 17, 2009 20:12:00 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS_Byte 221 - 228

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys