Mercurial > hg
annotate mcabber/src/screen.h @ 523:fc6bc26f891e
Write UTF-9 conversion failures to the tracelog file
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 19 Nov 2005 18:12:37 +0100 |
parents | 180f0a6e4ac9 |
children | 8b3db0b555a1 |
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 |
374
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
370
diff
changeset
|
7 #include "logprint.h" |
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
370
diff
changeset
|
8 |
24 | 9 #define COLOR_GENERAL 3 |
267 | 10 #define COLOR_NMSG 4 |
11 #define COLOR_BD_DESSEL 5 | |
12 #define COLOR_BD_DES 6 | |
24 | 13 |
74 | 14 #define ROSTER_WIDTH 24 |
185 | 15 #define PREFIX_WIDTH 17 |
24 | 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); | |
374
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
370
diff
changeset
|
27 void scr_TerminateCurses(void); |
151 | 28 void scr_DrawMainWindow(unsigned int fullinit); |
81 | 29 void scr_DrawRoster(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); |
514
979eb0fe2969
Show status changes in buddy window, if it is open
Mikael Berthe <mikael@lilotux.net>
parents:
508
diff
changeset
|
34 bool scr_BuddyBufferExists(const char *jid); |
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 int scr_Getch(void); | |
42 | |
29 | 43 int process_key(int); |
24 | 44 |
322
da138cdebf04
Implement auto-away mode
Mikael Berthe <mikael@lilotux.net>
parents:
314
diff
changeset
|
45 void scr_CheckAutoAway(bool activity); |
da138cdebf04
Implement auto-away mode
Mikael Berthe <mikael@lilotux.net>
parents:
314
diff
changeset
|
46 |
104 | 47 // For commands... |
108 | 48 void scr_RosterTop(void); |
49 void scr_RosterBottom(void); | |
377
00809e3e327e
Add "/roster up" and "/roster down"
Mikael Berthe <mikael@lilotux.net>
parents:
374
diff
changeset
|
50 void scr_RosterUp(void); |
00809e3e327e
Add "/roster up" and "/roster down"
Mikael Berthe <mikael@lilotux.net>
parents:
374
diff
changeset
|
51 void scr_RosterDown(void); |
265 | 52 void scr_RosterSearch(char *); |
480 | 53 void scr_RosterJumpJid(char *); |
361
51ff319947c3
Code cleanup/optimization
Mikael Berthe <mikael@lilotux.net>
parents:
336
diff
changeset
|
54 void scr_BufferTopBottom(int topbottom); |
369
499170ed71c9
Rename some buffer commands, for homogeneity
Mikael Berthe <mikael@lilotux.net>
parents:
364
diff
changeset
|
55 void scr_BufferClear(void); |
370
dd9e2eb52916
Add /buffer search_{backward,forward}
Mikael Berthe <mikael@lilotux.net>
parents:
369
diff
changeset
|
56 void scr_BufferSearch(int direction, const char *text); |
462 | 57 void scr_BufferPercent(int pc); |
464 | 58 void scr_BufferDate(time_t t); |
236 | 59 void scr_RosterUnreadMessage(int); |
330 | 60 void scr_RosterJumpAlternate(void); |
508
5a2132ba2220
Add "/buffer up" and "/buffer down"
Mikael Berthe <mikael@lilotux.net>
parents:
480
diff
changeset
|
61 void scr_BufferScrollUpDown(int updown, unsigned int nblines); |
104 | 62 |
24 | 63 #endif |