Mercurial > hg
annotate mcabber/src/screen.h @ 314:1ceb68eb2fc1
Merge Ctrl-C stuff
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 14 Jul 2005 23:24:22 +0100 |
parents | 627925d885de f0b7ff2df7e8 |
children | da138cdebf04 33b8e801ffa6 |
rev | line source |
---|---|
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(); | |
312
f0b7ff2df7e8
Ctrl-C does not terminate mcabber
Mikael Berthe <mikael@lilotux.net>
parents:
276
diff
changeset
|
40 void scr_handle_sigint(void); |
24 | 41 |
42 WINDOW *scr_GetInputWindow(void); | |
43 | |
44 int scr_Getch(void); | |
45 | |
29 | 46 int process_key(int); |
24 | 47 |
104 | 48 // For commands... |
108 | 49 void scr_RosterTop(void); |
50 void scr_RosterBottom(void); | |
265 | 51 void scr_RosterSearch(char *); |
187 | 52 void scr_BufferTop(void); |
53 void scr_BufferBottom(void); | |
108 | 54 void scr_Clear(void); |
236 | 55 void scr_RosterUnreadMessage(int); |
104 | 56 |
24 | 57 #endif |