| C T L _ D O C O N S W I T C H ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - CTL_#?
----------------------------------------------------------------------------
NAME
ctl_doconswitch() - Make freshly obtained console
the default in a process.
SYNOPSIS
ctl_doconswitch(ct, fd);
void ctl_doconswitch(struct ctl_csh_data *, LONG);
FUNCTION
This function clones and attaches given console file
desc. to the process and makes it default for it.
INPUTS
ct - Switch structure.
fd - File descriptor.
RETURNS
No output.
BASES
SysBase, DOSBase
NOTES
Always remember to restore original file descriptor
if you are going to quit the process!
It is possible to cascadify switches, but you have
to remeber the order they were applied in!
Important! Only output handles are being set here, so
'Input()' still points at primary console!
Important! Only this function is able to properly
clone 'fdrelay' handles!!!
It is safe to call this function any number of times.
SEE ALSO
ctl_undoconswitch()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |