|
|
To add a record to the ttydefs file, use
the following command:
/usr/sbin/sttydefs -a ttylabel [-b] [-n nextlabel] \
[-i initial-flags] [-f final-flags]
where ttylabel identifies the record that you want to add.
The -b option enables autobaud.
The -n option specifies the value to be used in the ``nextlabel'' field. If nextlabel is not specified, sttydefs will set nextlabel to ttylabel.
The -i option specifies the value to be used in the initial-flags field. The argument to this option must be in a format that stty understands. If initial-flags is not specified, sttydefs will set initial-flags to the termio flag ``9600''.
The -f option specifies the value to be used in the final-flags field. The argument to this option must be in a format that stty understands. If final-flags is not specified, sttydefs will set final-flags to the termio flags ``9600'' and ``sane''.
For example, the following command line creates
a new record in ttydefs:
sttydefs -a NEW -n NEXT -i "1200 hupcl erase ^h" \
-f "1200 sane ixany hupcl erase ^h echoe"
The baud rate of the line is 300-19200. hupcl specifies hang up when the line is closed. sane is a composite flag that stands for a set of normal line characteristics. ixany allows any character to restart output. If this flag is not specified, only DC1 (<Ctrl>Q) will restart output. tab3 causes tabs to be sent to the terminal as spaces. erase ^h sets the erase character to <Ctrl>H. On most terminals, this corresponds to the backspace key. echoe causes the erase character to be echoed as the string backspace-space-backspace. On most terminals, this will remove the character to be erased.