sgttyb
edchars.erase = cb.sgttyb.sg_erase;
edchars.kill = cb.sgttyb.sg_kill;
cb.sgttyb.sg_flags &= ~ECHO;
cb.sgttyb.sg_flags |= CBREAK;
ret = ioctl(fd, TIOCGETP, &ts->sgttyb);
ret = ioctl(fd, TIOCSETN, &ts->sgttyb);
struct sgttyb sgttyb;
struct sgttyb s;
static struct sgttyb save_term;
static struct sgttyb ttx;/* storage for the tty modes */
EXT struct sgttyb _tty;
int gtty(int, struct sgttyb *);
int stty(int, struct sgttyb *);
struct sgttyb *tty;
struct sgttyb *tty;
struct sgttyb *sg = (struct sgttyb *)data;
struct sgttyb *sg = (struct sgttyb *)data;
#define TIOCGETP _IOR('t', 8,struct sgttyb)/* get parameters -- gtty */
#define TIOCSETP _IOW('t', 9,struct sgttyb)/* set parameters -- stty */
#define TIOCSETN _IOW('t',10,struct sgttyb)/* as above, but no flushtty*/
static struct sgttyb sgorig;
struct sgttyb sg;
struct sgttyb tty, otty;