24
|
1 #ifndef __SCREEN_H__
|
|
2 #define __SCREEN_H__ 1
|
|
3
|
|
4 #include <ncurses.h>
|
|
5
|
|
6 #define COLOR_POPUP 1
|
|
7 #define COLOR_GENERAL 3
|
|
8 #define COLOR_BD_CONSEL 4
|
|
9 #define COLOR_BD_CON 5
|
|
10 #define COLOR_BD_DESSEL 6
|
|
11 #define COLOR_BD_DES 7
|
|
12
|
|
13 #define LOG_WIN_HEIGHT (5+2)
|
|
14 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT)
|
|
15
|
|
16 #define INPUTLINE_LENGTH 1024
|
|
17
|
|
18 extern int update_roaster;
|
|
19
|
|
20 void scr_InitCurses(void);
|
|
21 void scr_DrawMainWindow(void);
|
|
22 void scr_TerminateCurses(void);
|
|
23 void scr_CreatePopup(char *title, char *texto, int corte, int type,
|
|
24 char *returnstring);
|
|
25 void scr_WriteInWindow(char *nombreVentana, char *texto, int TimeStamp,
|
|
26 int force_show);
|
|
27 void scr_WriteIncomingMessage(char *jidfrom, char *text);
|
|
28 void scr_RoolWindow(void);
|
|
29 void scr_ShowBuddyWindow(void);
|
|
30 void scr_LogPrint(const char *fmt, ...);
|
|
31
|
|
32 int scr_IsHiddenMessage(char *jid);
|
|
33
|
|
34 WINDOW *scr_GetRosterWindow(void);
|
|
35 WINDOW *scr_GetStatusWindow(void);
|
|
36 WINDOW *scr_GetInputWindow(void);
|
|
37
|
|
38 int scr_Getch(void);
|
|
39
|
|
40 int process_key(int, int sock);
|
|
41
|
|
42 #endif
|