|
|
1.1 root 1: /*
2: ** SYSTEM DEPENDENT TERMINAL DELAY TABLES
3: **
4: ** CB/Unix 2.3
5: **
6: ** This looks like V7, and it even works, but the kernel really
7: ** only has one bit for each kind of delay so it's somewhat
8: ** inaccurate. But it tries to simulate v7.
9: **
10: ** This file maintains the correspondence between the delays
11: ** defined in /etc/termcap and the delay algorithms on a
12: ** particular system. For each type of delay, the bits used
13: ** for that delay must be specified (in XXbits) and a table
14: ** must be defined giving correspondences between delays and
15: ** algorithms. Algorithms which are not fixed delays (such
16: ** as dependent on current column or line number) must be
17: ** cludged in some way at this time.
18: */
19:
20:
21:
22: /*
23: ** Carriage Return delays
24: */
25:
26: int CRbits = CRDELAY;
27: struct delay CRdelay[] =
28: {
29: 0, CR0,
30: 9, CR3,
31: 80, CR1,
32: 160, CR2,
33: -1
34: };
35:
36: /*
37: ** New Line delays
38: */
39:
40: int NLbits = NLDELAY;
41: struct delay NLdelay[] =
42: {
43: 0, NL0,
44: 66, NL1, /* special M37 delay */
45: 100, NL2,
46: -1
47: };
48:
49:
50: /*
51: ** Back Space delays
52: */
53:
54: int BSbits = BSDELAY;
55: struct delay BSdelay[] =
56: {
57: 0, BS0,
58: -1
59: };
60:
61:
62: /*
63: ** TaB delays
64: */
65:
66: int TBbits = TBDELAY;
67: struct delay TBdelay[] =
68: {
69: 0, TAB0,
70: 11, TAB1, /* special M37 delay */
71: -1
72: };
73:
74:
75: /*
76: ** Form Feed delays
77: */
78:
79: int FFbits = VTDELAY;
80: struct delay FFdelay[] =
81: {
82: 0, FF0,
83: 2000, FF1,
84: -1
85: };
86:
87: #ifdef CBVIRTTERM
88: /*
89: * Map from the universal tables in termcap to the particular numbers
90: * this system uses. The lack of standardization of terminal numbers
91: * is a botch but such is life.
92: */
93: struct vt_map {
94: char stdnum;
95: char localnum;
96: } vt_map[] = {
97: #ifdef TERM_TEC
98: 1, TERM_TEC,
99: #endif
100: #ifdef TERM_V61
101: 2, TERM_V61,
102: #endif
103: #ifdef TERM_V10
104: 3, TERM_V10,
105: #endif
106: #ifdef TERM_TEX
107: 4, TERM_TEX,
108: #endif
109: #ifdef TERM_D40
110: 5, TERM_D40,
111: #endif
112: #ifdef TERM_H45
113: 6, TERM_H45,
114: #endif
115: #ifdef TERM_D42
116: 7, TERM_D42,
117: #endif
118: #ifdef TERM_C100
119: 8, TERM_C100,
120: #endif
121: #ifdef TERM_MIME
122: 9, TERM_MIME,
123: #endif
124: 0,0
125: };
126: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.