|
|
1.1 root 1: /* defines (sort of) protocol between host and term */
2:
3: #define P_CLEAR 'c' /* clear screen */
4:
5: #define P_DEFINE 'd' /* define something */
6:
7: #define P_FILE 'f' /* filename follows (term to host) */
8:
9: #define P_INIT 'i' /* initialize terminal */
10:
11: #define P_OBJECT 'o' /* object definition follows */
12: /* objects are 'b', 'c', etc. */
13: #define P_PRINT 'p' /* print string */
14:
15: #define P_QUIT 'q' /* all done */
16:
17: #define P_LINE 'L' /* expect a sequence of pairs back from defining a line */
18:
19: #define P_ENDLINE 'e' /* terminated by this */
20:
21: #define P_ENDFILE '.' /* end of data */
22:
23: #define P_ERROR '?' /* error in filename, etc. */
24:
25: #define P_ERRPRINT '!' /* an error string follows */
26:
27: /* options for various commands */
28:
29: #define Tcenter 10
30: #define Tljust 20
31: #define Trjust 30
32: #define Tabove 40
33: #define Tbelow 50
34: #define Tsmall 1
35: #define Tmedium 2
36: #define Tbig 3
37: #define Tbigbig 4
38:
39: int textops[] ={ 'c', Tcenter, 'l', Tljust, 'r', Trjust,
40: 's', Tsmall, 'm', Tmedium, 'b', Tbig, 'B', Tbigbig, 0 };
41:
42: #define Lsolid 10
43: #define Lfat 20
44: #define Lfatfat 30
45: #define Ldotted 40
46: #define Ldashed 50
47: #define Lline 1
48: #define Larrow1 2
49: #define Larrow2 3
50: #define Larrow3 4
51:
52: int lineops[] ={ 's', Lsolid, 'f', Lfat, 'F', Lfatfat, 'o', Ldotted, 'a', Ldashed,
53: '-', Lline, '>', Larrow1, '<', Larrow2, 'x', Larrow3, 0 };
54:
55: #define Bnofill 1
56: #define Bfill 2
57:
58: int boxops[] ={ 'n', Bnofill, 'f', Bfill, 0 };
59:
60: #define Cnofill 1
61: #define Cfill 2
62:
63: int circops[] ={ 'n', Cnofill, 'f', Cfill, 0 };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.