File: SZsetup.h

package info (click to toggle)
scrollz 2.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,992 kB
  • ctags: 4,728
  • sloc: ansic: 78,409; tcl: 2,866; makefile: 682; sh: 508
file content (124 lines) | stat: -rw-r--r-- 2,688 bytes parent folder | download | duplicates (6)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
 * $Id: SZsetup.h,v 1.3 2002-03-05 17:50:07 f Exp $
 */

#define mybufsize     1024
#define NUMCMDCOLORS  23
#define NUMCOLORS     21
/* Index of colors in Colors table */
#define COLOFF       0
#define COLBOLD      1
#define COLUNDERLINE 2
#define COLFLASH     3
#define COLREV       4
#define COLBLACK     5
#define COLRED       6
#define COLGREEN     7
#define COLYELLOW    8
#define COLBLUE      9
#define COLPURPLE    10
#define COLCYAN      11
#define COLWHITE     12
#define COLBLACKBG   13
#define COLREDBG     14
#define COLGREENBG   15
#define COLYELLOWBG  16
#define COLBLUEBG    17
#define COLPURPLEBG  18
#define COLCYANBG    19
#define COLWHITEBG   20
/* Index of commands in CmdsColors table */
#define COLWARNING   0
#define COLJOIN      1
#define COLMSG       2
#define COLNOTICE    3
#define COLNETSPLIT  4
#define COLINVITE    5
#define COLMODE      6
#define COLSETTING   7
#define COLLEAVE     8
#define COLNOTIFY    9
#define COLCTCP      10
#define COLKICK      11
#define COLDCC       12
#define COLWHO       13
#define COLWHOIS     14
#define COLPUBLIC    15
#define COLCDCC      16
#define COLLINKS     17
#define COLDCCCHAT   18
#define COLCSCAN     19
#define COLNICK      20
#define COLME        21

#define COLOR1 CmdsColors[setting+startset].color1
#define COLOR2 CmdsColors[setting+startset].color2
#define COLOR3 CmdsColors[setting+startset].color3
#define COLOR4 CmdsColors[setting+startset].color4
#define COLOR5 CmdsColors[setting+startset].color5
#define COLOR6 CmdsColors[setting+startset].color6

#define XSETTINGS  1
#define YSETTINGS  2
#define XCOLORS    12
#define YCOLORS    1
#define XSCRCOLORS 25
#define YSCRCOLORS 2
#define XMESSAGE   1
#define YMESSAGE   23
#define COLSELECT  COLCYANBG

struct colorstr {
    char color1[64];
    char color2[64];
    char color3[64];
    char color4[64];
    char color5[64];
    char color6[64];
};

struct setstr {
    char *name;
    void (*func)();
};

int  set_color();
void  set_term();
void  reset_term();
void read_file();
void init_sz_colors();
void move();
void addstr();
void attrset();
void attradd();
void draw_screen();
char *get_color_name();
void get_colors();
void save_colors();
void print_colors();
void fix_attr();
void fix_color();
void do_it();
void disp_warning();
void disp_join();
void disp_msg();
void disp_notice();
void disp_netsplit();
void disp_invite();
void disp_mode();
void disp_setting();
void disp_help();
void disp_leave();
void disp_notify();
void disp_ctcp();
void disp_kick();
void disp_dcc();
void disp_who();
void disp_whois();
void disp_public();
void disp_cdcc();
void disp_links();
void disp_dccchat();
void disp_cscan();
void disp_nick();
void disp_me();