1 /*  curs_term.h
2  *
3  *  copyright (c) 2000-2003 SeaD
4  *  see GPL for copying info
5  *
6  */
7 
8 #ifndef _CURS_TERM_H
9 #define _CURS_TERM_H 1
10 
11 #define COL_BORDER      1       /* borders */
12 #define COL_HEAD        2       /* heads */
13 #define COL_STATUS      3       /* status */
14 
15 #define NICK_LEN        12
16 
17 #define READ_TIMEOUT    10
18 
19 #define CHR_NORMAL      '+'
20 #define CHR_DND         '-'
21 #define CHR_AWAY        '='
22 #define CHR_OFF         '*'
23 
24 #define CHR_BIGNICK     '>'
25 #define CHR_PERCENT     '*'
26 
27 #define CHR_DROP        '`'     /* drop nick */
28 #define CHR_MESG        '/'     /* from chat_cmnd.h: CHR_CMND */
29 #define CHR_SLASH       '\\'    /* backslash escaping */
30 #define CHR_LF          0x0a    /* enter */
31 
32 #define CMD_MESG1       "mesg"  /* from chat_cmnd.h */
33 
34 #ifdef  LINUX                   /* ESC for Linux */
35 #define ESC             "\033"  /* escape */
36 #define SND_TONE        "[10;"  /* sound tone */
37 #define SND_DUR         "[11;"  /* sound duration */
38 #define SND_END         "]"
39 #define SND_SYST_DUR    20
40 #define SND_SYST_TONE   1500
41 #define SND_CHAT_DUR    20
42 #define SND_CHAT_TONE   300
43 #define SND_JOIN_DUR    20
44 #define SND_JOIN_TONE   3000
45 #define SND_MESG_DUR    100
46 #define SND_MESG_TONE   400
47 #define SND_BEEP_DUR    100
48 #define SND_BEEP_TONE   500
49 #endif  /* LINUX */
50 
51 #define TAB             '\t'    /* Tab */
52 #define ENTER           '\n'    /* Enter */
53 
54 #define CTL_A           '\x01'  /* ^A */
55 #define CTL_B           '\x02'  /* ^B */
56 #define CTL_D           '\x04'  /* ^D */
57 #define CTL_E           '\x05'  /* ^E */
58 #define CTL_K           '\x0B'  /* ^K */
59 #define CTL_L           '\x0C'  /* ^L */
60 #define CTL_N           '\x0E'  /* ^N */
61 #define CTL_O           '\x0F'  /* ^O */
62 #define CTL_P           '\x10'  /* ^P */
63 #define CTL_R           '\x12'  /* ^R */
64 #define CTL_T           '\x14'  /* ^T */
65 #define CTL_U           '\x15'  /* ^U */
66 #define CTL_Y           '\x19'  /* ^Y */
67 
68 extern WINDOW *room_win;
69 extern WINDOW *users_win;
70 extern WINDOW *input_win;
71 extern WINDOW *stat_win;
72 extern WINDOW *text_win;
73 extern WINDOW *read_win;
74 
75 extern char *string;
76 
77 #endif  /* _CURS_TERM_H */
78