author | Mikael Berthe <mikael@lilotux.net> |
Mon, 04 Jul 2005 12:55:54 +0100 | |
changeset 276 | 627925d885de |
parent 267 | 8d3d5bd52da3 |
child 312 | f0b7ff2df7e8 |
child 314 | 1ceb68eb2fc1 |
permissions | -rw-r--r-- |
24 | 1 |
#ifndef __SCREEN_H__ |
2 |
#define __SCREEN_H__ 1 |
|
3 |
||
4 |
#include <ncurses.h> |
|
173 | 5 |
#include <glib.h> |
24 | 6 |
|
7 |
#define COLOR_GENERAL 3 |
|
267 | 8 |
#define COLOR_NMSG 4 |
9 |
#define COLOR_BD_DESSEL 5 |
|
10 |
#define COLOR_BD_DES 6 |
|
24 | 11 |
|
12 |
#define LOG_WIN_HEIGHT (5+2) |
|
74 | 13 |
#define ROSTER_WIDTH 24 |
185 | 14 |
#define PREFIX_WIDTH 17 |
24 | 15 |
#define CHAT_WIN_HEIGHT (maxY-1-LOG_WIN_HEIGHT) |
16 |
||
17 |
#define INPUTLINE_LENGTH 1024 |
|
18 |
||
276
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
19 |
// Only used in screen.c; this is the maximum line number |
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
20 |
// in a multi-line message. Should be < 1000 |
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
21 |
// Note: message length is limited by the HBB_BLOCKSIZE size too |
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
22 |
#define MULTILINE_MAX_LINE_NUMBER 299 |
627925d885de
Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents:
267
diff
changeset
|
23 |
|
30 | 24 |
extern int update_roster; |
24 | 25 |
|
26 |
void scr_InitCurses(void); |
|
151 | 27 |
void scr_DrawMainWindow(unsigned int fullinit); |
81 | 28 |
void scr_DrawRoster(void); |
24 | 29 |
void scr_TerminateCurses(void); |
184 | 30 |
void scr_WriteIncomingMessage(const char *jidfrom, const char *text, |
190 | 31 |
time_t timestamp, guint prefix); |
50 | 32 |
void scr_WriteOutgoingMessage(const char *jidto, const char *text); |
24 | 33 |
void scr_ShowBuddyWindow(void); |
34 |
void scr_LogPrint(const char *fmt, ...); |
|
129 | 35 |
inline void scr_set_chatmode(int enable); |
238 | 36 |
inline void scr_set_multimode(int enable); |
37 |
inline int scr_get_multimode(); |
|
38 |
void scr_append_multiline(const char *line); |
|
39 |
inline const char *scr_get_multiline(); |
|
24 | 40 |
|
41 |
WINDOW *scr_GetInputWindow(void); |
|
42 |
||
43 |
int scr_Getch(void); |
|
44 |
||
29 | 45 |
int process_key(int); |
24 | 46 |
|
104 | 47 |
// For commands... |
108 | 48 |
void scr_RosterTop(void); |
49 |
void scr_RosterBottom(void); |
|
265 | 50 |
void scr_RosterSearch(char *); |
187 | 51 |
void scr_BufferTop(void); |
52 |
void scr_BufferBottom(void); |
|
108 | 53 |
void scr_Clear(void); |
236 | 54 |
void scr_RosterUnreadMessage(int); |
104 | 55 |
|
24 | 56 |
#endif |