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