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_ReadLine

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_ReadLine

OS_ReadLine

(SWI &0E)
Entry
R0 Buffer + flags
R1 Lowest char allowed
R2 Lowest char allowed
R3 Highest char allowed
R4 Character to output (if bit 30 set)
Exit
R0 Corrupted
R1 Chars read, excluding Return
R2 Corrupted
R3 Corrupted
C flag is set if input is terminated by an escape condition

Use

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

Notes

Input is terminated with Return, Ctrl-J or Escape. Delete and Backspace deletes last char entered. Ctrl-U empties buffer.

When the buffer is full, each successive attempt to enter a character results in a Ctrl-G ‘beep’.

See also

  • OS_ReadLine Flags
  • OS_ReadLine32
Created on December 1, 2009 14:49:02 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: FileSwitch Miscellaneous Information, OS SWI Calls, Software Vector Numbers, OS_Byte 217, OS_ReadLine Flags, OS_ReadLine32, OS_Word 0, OS_Word 0 Buffer

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