|
|
1.1 root 1: /*
2: * 'ntty' ioctls
3: */
4:
5: /*
6: * local special characters
7: */
8: struct ltchars {
9: char t_suspc; /* stop process signal */
10: char t_dsuspc; /* delayed stop process signal */
11: char t_rprntc; /* reprint line */
12: char t_flushc; /* flush output (toggles) */
13: char t_werasc; /* word erase */
14: char t_lnextc; /* literal next character */
15: };
16:
17: /*
18: * local undo special characters
19: */
20: struct luchars {
21: char t_undoc; /* erase/kill/werase undo character */
22: char t_urotc; /* rotate undo stack character */
23: };
24:
25: /*
26: * local mode settings
27: */
28: #define LCRTBS 0000001 /* correct backspacing for crt */
29: #define LPRTERA 0000002 /* printing terminal \ ... / erase */
30: #define LCRTERA 0000004 /* do "\b \b" to wipe out character */
31: #define LTILDE 0000010 /* IIASA - hazeltine tilde kludge */
32: #define LMDMBUF 0000020 /* IIASA - start/stop output on carrier intr */
33: #define LLITOUT 0000040 /* IIASA - suppress any output translations */
34: #define LTOSTOP 0000100 /* send stop for any background tty output */
35: #define LFLUSHO 0000200 /* flush output sent to terminal */
36: #define LNOHANG 0000400 /* IIASA - don't send hangup on carrier drop */
37: #define LETXACK 0001000 /* IIASA - diablo style buffer hacking */
38: #define LCRTKIL 0002000 /* erase whole line ala LCRTERA */
39: #define LINTRUP 0004000 /* interrupt on every input char - SIGTINT */
40: #define LCTLECH 0010000 /* echo control characters as ^X */
41: #define LPENDIN 0020000 /* tp->t_rawq is waiting to be reread */
42: #define LDECCTQ 0040000 /* only ^Q starts after ^S */
43:
44: /* local state */
45: #define LSBKSL 01 /* state bit for lowercase backslash work */
46: #define LSQUOT 02 /* last character input was \ */
47: #define LSERASE 04 /* within a \.../ for LPRTRUB */
48: #define LSLNCH 010 /* next character is literal */
49: #define LSTYPEN 020 /* retyping suspended input (LPENDIN) */
50: #define LSCNTTB 040 /* counting width of tab; leave LFLUSHO alone */
51:
52: /*
53: * tty ioctl commands
54: */
55: #define TIOCLBIS (('t'<<8)|127) /* bis local mode bits */
56: #define TIOCLBIC (('t'<<8)|126) /* bic local mode bits */
57: #define TIOCLSET (('t'<<8)|125) /* set entire local mode word */
58: #define TIOCLGET (('t'<<8)|124) /* get local modes */
59: #define TIOCSLTC (('t'<<8)|117) /* set local special characters */
60: #define TIOCGLTC (('t'<<8)|116) /* get local special characters */
61: #define TIOCOUTQ (('t'<<8)|115) /* number of chars in output queue */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.