-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecutty.h
73 lines (64 loc) · 1.76 KB
/
ecutty.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*+-------------------------------------------------------------------------
ecutty.h
wht@wht.net
--------------------------------------------------------------------------*/
/*+:EDITS:*/
/*:04-26-2000-11:15-wht@bob-RELEASE 4.42 */
/*:01-24-1997-02:37-wht@yuriatin-SOURCE RELEASE 4.00 */
/*:09-11-1996-20:00-wht@yuriatin-3.48-major telnet,curses,structural overhaul */
/*:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11 */
/*:11-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS */
/*:05-04-1994-04:39-wht@n4hgf-ECU release 3.30 */
/*:09-10-1992-13:59-wht@n4hgf-ECU release 3.20 */
/*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
/*:03-27-1992-16:21-wht@n4hgf-re-include protection for all .h files */
/*:07-25-1991-12:57-wht@n4hgf-ECU release 3.10 */
/*:07-14-1991-18:19-wht@n4hgf-new ttygets functions */
/*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
#ifndef _ecutty_h
#define _ecutty_h
typedef struct color_type
{
char *name;
int num;
}
COLOR;
#ifdef DEFINE_TTY_DATA
COLOR colors[] =
{
{"black", 0},
{"blue", 1},
{"brown", 6},
{"cyan", 3},
{"gray", 8},
{"green", 2},
{"hi_white", 15},
{"lt_blue", 9},
{"lt_cyan", 11},
{"lt_green", 10},
{"lt_magenta", 13},
{"lt_red", 12},
{"magenta", 5},
{"red", 4},
{"white", 7},
{"yellow", 14},
{(char *)0, -1}
};
#else
extern COLOR colors[];
#endif
/* color words are UINT32:
MSB: reverse video foreground
reverse video background
normal video foreground
LSB: normal video background
*/
/*
* ttygets flag bits
*/
#define TG_CRLF 1 /* echo cr/lf terminator */
#define TG_XDELIM 2 /* extended delimiter set */
#define TG_EDIT 4 /* redisplay/edit current string */
#endif /* _ecutty_h */
/* vi: set tabstop=4 shiftwidth=4: */
/* end of ecutty.h */