RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_ReadC

OS SWI Calls
» OS_ReadC

OS_ReadC

(SWI &04)
Entry
- -
Exit
R0 ASCII (if C flag is 0), or
Error number (if C flag is 1), or
&1B = escape

Use

The purpose of this call is to read a character from the input stream.

Notes

It waits to get the next character, i.e. you will only get the control back when, for example, a key is pressed.

The source for the input stream can be read with OS_Byte 177.

If cursor editing is enabled (see OS_Byte 4), then pressing a cursor keys will start cursor editing.

See also

  • OS_Byte 4
  • OS_Byte 177
Revised on November 11, 2017 08:41:36 by Alan Robertson (52) (49.192.18.196)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: WindowManager Keyboard Input And Text Handling, OS SWI Calls, FileSwitch Miscellaneous Information, OS_AddCallBack, Software Vector Numbers, OS_Byte 2, OS_ReadEscapeState, Program Environment, SystemDevices Technical Details, OS_Byte 216, Debugging guide, OS SWI Calls (français)

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 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