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_ReadC

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» 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 26, 2010 12:56:17 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: The Window Manager Keyboard Input And Text Handling, FileSwitch Miscellaneous Information, OS_AddCallBack, OS SWI Calls, OS_Byte 2, OS_Byte 3, Software Vector Numbers, OS_Byte 216, OS_ReadEscapeState

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