With the stty-ncxa command, display attributes such as flow control settings, speed and transparent print settings can be configured for your Digi TTY devices. The stty-ncxa program is placed into the directory /usr/lbin/tty when RealPort is installed. This directory is not commonly set as a PATH variable. This means that the entire path has to be entered when using the command, or the directory has to be added to the PATH variable so the command can be entered without the path.
Note: Many of the same attributes that can be configured with stty-ncxa can be configured with smit. See Configuring a Device with smit.
The stty-ncxa command configures device attributes until the system is rebooted. Use a chdev command to permanently set device attributes.
chdev -l [tty#/lp#] -a [attribute]=[value]
where:
[tty#/lp#]
is the name of the device to change
[attribute]
is the attribute or option to set. This can be any stty-ncxa option.
[value]
is the value assigned to the attribute
The format for stty-ncxa is:
stty-ncxa [-a] [-n ttyname] [option(s)] [ttyname]
With no options, stty-ncxa displays all Digi special driver settings, modem signals, and all standard parameters displayed by stty for the TTY device referenced by standard input.
Command options are provided to change flow control settings, set transparent print options, force modem control lines, and display all TTY settings. Any unrecognized options are passed to stty for interpretation.
|
-a |
Display all of the unique Digi option settings, as well as all of the standard TTY settings reported by stty -a. |
|
-n ttyname |
Set and display options for the given TTY device, instead of standard input. This option may be specified multiple times to perform the same operation on multiple TTYs. |
|
ttyname |
Set and display options for the given tty device, instead of standard input. This form can be used with a TTY pathname prefixed by /dev/ or with a simple TTY name beginning with TTY (or the basename you selected during installation, if different). This option may be used on a modem control line when no carrier is present. |
The following options specify transient actions to be performed immediately:
|
break |
Send a 250 MS break signal out on the TTY line. |
|
flush |
Immediately flush (discard) TTY input and output. |
|
flushin |
Flush TTY input only. |
|
flushout |
Flush TTY output only. |
The following options specify actions that are not "sticky," meaning that the changes are reset when the device is closed, and that the device will use the default values the next time it is opened.:
|
stopout |
Stop output exactly as if an xoff character was received. |
|
startout |
Restart stopped output exactly as if an xon character was received. |
|
stopin |
Activate flow control to stop input. |
|
startin |
Release flow control to resume stopped input. |
|
[-]dtr |
Raise [drop] the DTR modem control line, unless DTR hardware flow control is selected. |
|
[-]rts |
Raise [drop] the RTS modem control line, unless RTS hardware flow control is selected. |
The following options are "sticky." The effects continue until the system is rebooted or until the options are changed.
|
[-]fastbaud |
Alter the baud rate tables, so 50 baud becomes 57,600 baud, 75 baud becomes 76,800 baud and 110 baud becomes 115,200 baud. |
|
[-]rtspace |
Enable [disable] RTS hardware input flow control, so RTS drops to pause remote transmission. |
|
[-]ctspace |
Enable [disable] CTS hardware output flow control, so local transmission pauses when CTS drops. |
|
[-]dsrpace |
Enable [disable] DSR hardware output flow control, so local transmission pauses when DSR drops. |
|
[-]dcdpace |
Enable [disable] DCD hardware output flow control, so local transmission pauses when DCD drops. |
|
[-]dtrpace |
Enable [disable] DTR hardware input flow control, so DTR drops to pause remote transmission. |
|
[-]forcedcd |
Disable [re-enable] carrier sense, so the tty may be opened and used even when carrier is not present. |
|
[-]altpin |
No effect in this device driver. To enable alternate wiring for DCD and DSR, use the PortServer's set flow command. See the PortServer Installation Guide for details. |
|
startc c |
Sets the XON flow control character. The character may be given as a decimal, octal or hexadecimal number. Octal numbers are recognized by the presence of a leading zero, and hexadecimal numbers are denoted by a leading "0x". For example, the standard XON character, <CTRL-Q>, can be entered as "17" (decimal), "021" (octal) or "0x11" (hexadecimal). |
|
stopc c |
Sets the XOFF flow control character. The character may be given as a decimal, octal, or hexadecimal number (see startc , above, for format of octal and hexadecimal numbers). |
|
astartc c |
Sets auxiliary XON flow control character. The character may be given as a decimal, octal, or hexadecimal number (see startc , above, for format of octal and hexadecimal numbers). |
|
astopc c |
Sets auxiliary XOFF flow control character. The character may be given as a decimal, octal, or hexadecimal number (see startc , above, for format of octal and hexadecimal numbers). |
|
[-]aixon |
Enables auxiliary flow control, so that two unique characters are used for XON and XOFF. If both XOFF characters are received, transmission will not resume until both XON char-acters are received. |
|
maxcps n |
Sets the maximum Characters Per Second (CPS) rate at which characters are output to the transparent print device. The rate chosen should be just below the average print speed. If the number is too low, printer speed will be reduced. If the number is too high, the printer will resort to flow control, and user entry on the terminal will be correspondingly impaired. The default is 100 CPS. |
|
maxchar n |
Sets the maximum number of transparent print characters the driver will place in the output queue. Reducing this number increases system overhead; increasing this number delays operator keystroke echo times when the transparent printer is in use. The default is 50 characters. |
|
bufsize n |
Sets the driver's estimate of the size of the transparent printer's input buffer. After a period of inactivity, the driver bursts this many characters to the transparent printer before reducing to the maxcps rate selected above. The default is 100 characters. |
|
onstr s |
Sets the terminal escape sequence to turn transparent printing on. The string s can be composed of standard ASCII printing and non-printing characters; control (non-printing) characters must be entered by their octal values, and must consist of three digits preceded by a back-slash ("\") character. For example, the "Escape" character Esc, 33 octal, should be entered as " \033 ". Thus, if transparent printing is turned on by the string " Esc [5i " (ANSI standard), s should be entered as " \033[5 i". |
|
offstr s |
Sets the terminal escape sequence to turn transparent printing off. See " onstr ", above, for the format of the string s . |
|
term t |
Sets the transparent printer on/off strings to values found in the internal default table. Internal defaults are used for the following terminals: adm31 , ansi , dg200 , dg210 , hz1500 , mc5 , microterm , multiterm , pcterm , tvi , vp-a2 , vp-60 , vt52 , vt100 , vt220 , wyse30 , wyse50 , wyse60 , or wyse75 . If the terminal type is not found in the internal default table, then ditty reads the terminfo entry for the terminal type and sets transparent print on/off strings to values given by the mc5/mc4 attributes found there. |
Also see man pages for stty , ioctl , termio , and terminfo .