STTY

Control terminal settings

 

 

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).

1 = Set the Synergy DBL standard stty settings.

2 = Don’t restore terminal attributes on the SPAWN or SHELL subroutines at runtime exit.

3 = Restore terminal attributes on the SPAWN or SHELL subroutines and at runtime exit.

4 = Enable stty of a serial device used in the OPEN statement.

5 = Disable stty of a serial device used in the OPEN statement.

6 = Change device open time-out to seconds.

7 = Restore the terminal attributes on the SPAWN or SHELL subroutines even if the runtime is set to not affect terminal attributes.

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.

You can reset setting 7 by calling STTY with setting 3.

Note

For settings 3 and 7, terminal attributes are only restored on SPAWN if SPAWN’s second argument is passed.