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_ReadLine32 (Rev #2)

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
Revision from April 2, 2014 13:41:41 by Jeffrey Lee (213)
Forward in time (4 more) | Back in time (1 more) | See current | See changes | History | Rollback | Linked from: OS SWI Calls, Software Vector Numbers, OS_ReadLine, CallASWI, OS_ReadLine Flags, OS SWI Calls (français), ReadLineV

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