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_ChangeRedirection

OS SWI Calls
» OS_ChangeRedirection

OS_ChangeRedirection

(SWI &5E)
Entry
R0 New file handle for input
0 = not redirected
-1 = read
R1 New file handle for output
0 = not redirected
-1 = read
Exit
R0 Old file handle for input (or 0 for standard input)
R1 Old file handle for output (or 0 for standard output)

Use

The purpose of this call is to read or write the file handles used by OS_CLI to redirect input/output.

Notes

This call is mainly provided for the use of the TaskManager, but you may also find the call useful.

Calling OS_Exit automatically removes any redirection (and closes the associated file handles) before control passes to the exit handler.

See also

  • OS_CLI
  • OS_Exit
Revised on December 4, 2019 09:37:15 by Chris Johns (8262)? (78.33.41.114)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: OS SWI Calls, 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