Mercurial > hg
diff mcabber/src/screen.h @ 24:e88b15cbf2de
[/trunk] Changeset 40 by mikael
* Change structure -> src directory for mcabber source code...
author | mikael |
---|---|
date | Sun, 27 Mar 2005 20:16:02 +0000 |
parents | |
children | 86837ff0554c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mcabber/src/screen.h Sun Mar 27 20:16:02 2005 +0000 @@ -0,0 +1,42 @@ +#ifndef __SCREEN_H__ +#define __SCREEN_H__ 1 + +#include <ncurses.h> + +#define COLOR_POPUP 1 +#define COLOR_GENERAL 3 +#define COLOR_BD_CONSEL 4 +#define COLOR_BD_CON 5 +#define COLOR_BD_DESSEL 6 +#define COLOR_BD_DES 7 + +#define LOG_WIN_HEIGHT (5+2) +#define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT) + +#define INPUTLINE_LENGTH 1024 + +extern int update_roaster; + +void scr_InitCurses(void); +void scr_DrawMainWindow(void); +void scr_TerminateCurses(void); +void scr_CreatePopup(char *title, char *texto, int corte, int type, + char *returnstring); +void scr_WriteInWindow(char *nombreVentana, char *texto, int TimeStamp, + int force_show); +void scr_WriteIncomingMessage(char *jidfrom, char *text); +void scr_RoolWindow(void); +void scr_ShowBuddyWindow(void); +void scr_LogPrint(const char *fmt, ...); + +int scr_IsHiddenMessage(char *jid); + +WINDOW *scr_GetRosterWindow(void); +WINDOW *scr_GetStatusWindow(void); +WINDOW *scr_GetInputWindow(void); + +int scr_Getch(void); + +int process_key(int, int sock); + +#endif