0
|
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
|
1
|
13 #define LOG_WIN_HEIGHT (5+2)
|
|
14 #define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT)
|
|
15
|
|
16 #define INPUTLINE_LENGTH 1024
|
|
17
|
0
|
18 void scr_InitCurses(void);
|
|
19 void scr_DrawMainWindow(void);
|
|
20 void scr_TerminateCurses(void);
|
|
21 void scr_CreatePopup(char *title, char *texto, int corte, int type,
|
|
22 char *returnstring);
|
11
|
23 void scr_WriteInWindow(char *nombreVentana, char *texto, int TimeStamp,
|
|
24 int force_show);
|
0
|
25 void scr_WriteMessage(int sock);
|
|
26 void scr_WriteIncomingMessage(char *jidfrom, char *text);
|
|
27 void scr_RoolWindow(void);
|
|
28 void scr_ShowBuddyWindow(void);
|
4
|
29 void scr_LogPrint(const char *fmt, ...);
|
0
|
30
|
|
31 WINDOW *scr_GetRosterWindow(void);
|
|
32 WINDOW *scr_GetStatusWindow(void);
|
2
|
33 WINDOW *scr_GetInputWindow(void);
|
0
|
34
|
|
35 int scr_Getch(void);
|
|
36
|
2
|
37 int process_key(int, int sock);
|
0
|
38
|
|
39 #endif
|