h6. [[OS SWI Calls]] h6(. » OS_ChangeRedirection h2. OS_ChangeRedirection h5. (SWI &5E) |_<^{width:3em}. Entry | | |/3<^. R0|<^. New file handle for input | |<^. 0 = not redirected | |<^. -1 = read | |/3<^. R1|<^. New file handle for output | |<^. 0 = not redirected | |<^. -1 = read | |_<^{width:3em}. Exit | | |<^. R0|<^. Old file handle for input (or 0 for standard input) | |<^. R1|<^. Old file handle for output (or 0 for standard output)| h4. Use The purpose of this call is to read or write the file handles used by [[OS_CLI]] to redirect input/output. h4. 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|exit handler]]. h4. See also * [[OS_CLI]] * [[OS_Exit]]