STTY
|
WNSupported in Synergy .NET on Windows
|
USupported on UNIX
|
|
xcall STTY(setting_flag[, seconds])
Arguments
setting_flag
One of the following terminal setting controls: (n)
0 = Restore stty attributes to their original settings (before Synergy DBL modified them) on UNIX, or allow console.readline to echo characters on .NET.
1 = Set the Synergy DBL standard stty settings or normal .NET runtime defaults.
2 = Don’t restore terminal attributes on the SPAWN or SHELL subroutines at runtime exit. (UNIX only)
3 = Restore terminal attributes on the SPAWN or SHELL subroutines and at runtime exit. (UNIX only)
4 = Enable stty of a serial device used in the OPEN statement. (UNIX only)
5 = Disable stty of a serial device used in the OPEN statement. (UNIX only)
6 = Change device open time-out to seconds. (UNIX only)
7 = Restore the terminal attributes on the SPAWN or SHELL subroutines even if the runtime is set to not affect terminal attributes. (UNIX only)
seconds
(optional) The number of seconds for the runtime to wait to open a device before returning a “Device in use” ($ERR_DEVUSE) error.
Discussion
The STTY subroutine sets or unsets the terminal settings.
On UNIX, you can reset setting 7 by calling STTY with setting 3.
For settings 3 and 7, terminal attributes are only restored on SPAWN if SPAWN’s second argument is passed. |
The Synergy .NET runtime supports setting_flag values of 0 and 1. STTY(0) is required for a console.readline to echo characters on .NET. The ACCEPT and READS statements and the W_ routines should not be used while STTY(0) is in effect.