Commit | Line | Data |
---|---|---|
5658e54c MT |
1 | /* |
2 | * Copyright (c) 1982, 1986 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
6 | * @(#)ttydefaults.h 1.1 (Berkeley) %G% | |
7 | */ | |
8 | ||
9 | /* | |
10 | * System wide defaults of terminal state. | |
11 | */ | |
12 | #ifndef _TTYDEFAULTS_ | |
13 | #define _TTYDEFAULTS_ | |
14 | ||
15 | #define CTRL(x) (x&037) | |
16 | /* | |
17 | * Control Character Defaults | |
18 | */ | |
19 | #define CEOF CTRL('d') | |
20 | #define CEOL POSIX_V_DISABLE | |
21 | #ifdef DECSTYLE_DEFAULTS | |
22 | #define CERASE 0177 | |
23 | #define CINTR CTRL('c') | |
24 | #define CKILL CTRL('u') | |
25 | #else | |
26 | #define CERASE CTRL('h') | |
27 | #define CINTR 0177 | |
28 | #define CKILL CTRL('x') | |
29 | #endif | |
30 | #define CMIN 1 | |
31 | #define CQUIT 034 /* FS, ^\ */ | |
32 | #define CSUSP CTRL('z') | |
33 | #define CTIME 1 | |
34 | #define CDSUSP CTRL('y') | |
35 | #define CSTART CTRL('q') | |
36 | #define CSTOP CTRL('s') | |
37 | #define CLNEXT CTRL('v') | |
38 | #define CFLUSHO CTRL('o') | |
39 | #define CWERASE CTRL('w') | |
40 | #define CREPRINT CTRL('r') | |
41 | #define CQUOTE '\\' | |
42 | #define CEOT CEOF | |
43 | ||
44 | #ifdef COMPAT_43 | |
45 | #define CBRK CEOL | |
46 | #define CRPRNT CREPRINT | |
47 | #define CFLUSH CFLUSHO | |
48 | #endif | |
49 | ||
50 | /* | |
51 | * Settings on first open of a tty. | |
52 | */ | |
53 | #define TTYDEF_IFLAG (BRKINT | ISTRIP | IMAXBEL | IEXTEN) | |
54 | #define TTYDEF_OFLAG (0) | |
55 | #define TTYDEF_LFLAG (ECHO | ICANON | ISIG) | |
56 | #define TTYDEF_CFLAG (CREAD | CS7 | PARENB) | |
57 | #define TTYDEF_SPEED (B9600) | |
58 | ||
59 | #endif /*_TTYDEFAULTS_*/ | |
60 | ||
61 | /* | |
62 | * Define TTYDEFCHARS to include an array of default control characters. | |
63 | */ | |
64 | #ifdef TTYDEFCHARS | |
65 | u_char ttydefchars[NCC] = { | |
66 | CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT, CQUOTE, | |
67 | CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT, | |
68 | CFLUSHO, CMIN, CTIME, POSIX_V_DISABLE, POSIX_V_DISABLE | |
69 | }; | |
70 | #endif /*TTYDEFCHARS*/ |