ack/lib/minix/include/sgtty.h

46 lines
1.4 KiB
C
Raw Normal View History

1988-04-19 09:15:48 +00:00
/* Data structures for IOCTL. */
struct sgttyb {
1989-11-03 12:57:25 +00:00
char sg_ispeed; /* input speed */
char sg_ospeed; /* output speed */
1988-04-19 09:15:48 +00:00
char sg_erase; /* erase character */
char sg_kill; /* kill character */
int sg_flags; /* mode flags */
};
struct tchars {
char t_intrc; /* SIGINT char */
char t_quitc; /* SIGQUIT char */
char t_startc; /* start output (initially CTRL-Q) */
char t_stopc; /* stop output (initially CTRL-S) */
char t_eofc; /* EOF (initially CTRL-D) */
char t_brkc; /* input delimiter (like nl) */
};
1989-11-03 12:57:25 +00:00
/* Field names */
1988-04-19 09:15:48 +00:00
#define XTABS 0006000 /* do tab expansion */
1989-11-03 12:57:25 +00:00
#define BITS8 0001400 /* 8 bits/char */
#define BITS7 0001000 /* 7 bits/char */
#define BITS6 0000400 /* 6 bits/char */
#define BITS5 0000000 /* 5 bits/char */
#define EVENP 0000200 /* even parity */
#define ODDP 0000100 /* odd parity */
1988-04-19 09:15:48 +00:00
#define RAW 0000040 /* enable raw mode */
#define CRMOD 0000020 /* map lf to cr + lf */
#define ECHO 0000010 /* echo input */
#define CBREAK 0000002 /* enable cbreak mode */
#define COOKED 0000000 /* neither CBREAK nor RAW */
1989-11-03 12:57:25 +00:00
/* Line speeds */
#define B110 1
#define B300 3
#define B1200 12
#define B2400 24
#define B4800 48
#define B9600 96
1988-04-19 09:15:48 +00:00
#define TIOCGETP (('t'<<8) | 8)
#define TIOCSETP (('t'<<8) | 9)
#define TIOCGETC (('t'<<8) | 18)
#define TIOCSETC (('t'<<8) | 17)