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_ReadLine32

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

OS_ReadLine32

(SWI &7D)
Entry
R0 Buffer
R1 Size of buffer
R2 Lowest char allowed
R3 Highest char allowed
R4 Flags and character to output in bottom byte (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’.

The CallASWI module (version 0.03) allows this SWI to be used with RISC OS pre 5.00.

See also

  • OS_ReadLine
  • OS_ReadLine Flags
Created on December 1, 2009 14:55:43 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS SWI Calls, OS_ReadLine, OS_ReadLine Flags, CallASWI

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