HP-UX Reference (11i v3 07/02) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

s
sttyv6(7) sttyv6(7)
NAME
sttyv6: stty - terminal interface for Version 6/PWB compatibility
DESCRIPTION
These routines attempt to map the UNIX Time-Sharing System, Sixth Edition (Version 6), and PWB
stty() and gtty() calls into the current ioctls that perform the same functions. The mapping cannot
be perfect. The way the features are translated is described below. The reader should be familiar with
termio before studying this entry.
The following data structure is defined in the include file
<sgtty.h>:
struct sgttyb {
char sg_ispeed; /* input speed */
char sg_ospeed; /* output speed */
char sg_erase; /* erase character */
char sg_kill; /* kill character */
int sg_flags; /* mode flags */
}
The flags, as defined in
sgtty.h, are:
HUPCL 01
XTABS 02
LCASE 04
ECHO 010
CRMOD 020
RAW 040
ODDP 0100
EVENP 0200
ANYP 0300
NLDELAY 001400
TBDELAY 002000
CRDELAY 030000
VTDELAY 040000
BSDELAY 0100000
CR0 0
CR1 010000
CR2 020000
CR3 030000
NL0 0
NL1 000400
NL2 001000
NL3 001400
TAB0 0
TAB1 002000
NOAL 004000
FF0 0
FF1 040000
BS0 0
BS1 0100000
When the stty command (ioctl TIOCSETP) is executed, the flags in the old sgttyb structure are
mapped into their new equivalents in the termio structure. Then the TCSETA command is executed.
The following table shows the mapping between the old sgttyb flags and the current termio flags.
Note that flags contained in the termio structure that are not mentioned below are cleared.
HUPCL (if set) Sets the termio HUPCL flag.
HUPCL (if clear) Clears the termio HUPCL flag.
XTABS (if set) Sets the termio TAB3 flag.
XTABS (if clear) Clears the termio TAB3 flag.
TBDELAY (if set) Sets the termio TAB1 flag.
HP-UX 11i Version 3: February 2007 1 Hewlett-Packard Company 201