24
|
1 #ifndef __SCREEN_H__
|
|
2 #define __SCREEN_H__ 1
|
|
3
|
|
4 #include <ncurses.h>
|
|
5
|
139
|
6 //#define COLOR_NMSG 1
|
24
|
7 #define COLOR_GENERAL 3
|
139
|
8 //#define COLOR_BD_CON 4
|
|
9 #define COLOR_NMSG 5
|
24
|
10 #define COLOR_BD_DESSEL 6
|
|
11 #define COLOR_BD_DES 7
|
|
12
|
|
13 #define LOG_WIN_HEIGHT (5+2)
|
74
|
14 #define ROSTER_WIDTH 24
|
24
|
15 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT)
|
|
16
|
|
17 #define INPUTLINE_LENGTH 1024
|
|
18
|
30
|
19 extern int update_roster;
|
24
|
20
|
|
21 void scr_InitCurses(void);
|
|
22 void scr_DrawMainWindow(void);
|
81
|
23 void scr_DrawRoster(void);
|
24
|
24 void scr_TerminateCurses(void);
|
50
|
25 void scr_WriteIncomingMessage(const char *jidfrom, const char *text);
|
|
26 void scr_WriteOutgoingMessage(const char *jidto, const char *text);
|
24
|
27 void scr_ShowBuddyWindow(void);
|
|
28 void scr_LogPrint(const char *fmt, ...);
|
129
|
29 inline void scr_set_chatmode(int enable);
|
24
|
30
|
|
31 WINDOW *scr_GetInputWindow(void);
|
|
32
|
|
33 int scr_Getch(void);
|
|
34
|
29
|
35 int process_key(int);
|
24
|
36
|
104
|
37 // For commands...
|
108
|
38 void scr_RosterTop(void);
|
|
39 void scr_RosterBottom(void);
|
|
40 void scr_Clear(void);
|
104
|
41
|
24
|
42 #endif
|