annotate mcabber/mcabber/screen.h @ 2231:387cea2a1a81

Fix resizing with --enable-sigwinch
author Mikael Berthe <mikael@lilotux.net>
date Sun, 15 Nov 2015 17:03:41 +0100
parents 038c4d601011
children f181418db215
rev   line source
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
1 #ifndef __MCABBER_SCREEN_H__
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
2 #define __MCABBER_SCREEN_H__ 1
24
e88b15cbf2de [/trunk] Changeset 40 by mikael
mikael
parents:
diff changeset
3
173
09e24917059d [/trunk] Changeset 185 by mikael
mikael
parents: 151
diff changeset
4 #include <glib.h>
24
e88b15cbf2de [/trunk] Changeset 40 by mikael
mikael
parents:
diff changeset
5
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
6 #include <mcabber/config.h>
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
7
935
97e6a6da2b2c Fix ncurses #include (again)
Mikael Berthe <mikael@lilotux.net>
parents: 930
diff changeset
8 #if HAVE_NCURSESW_NCURSES_H
97e6a6da2b2c Fix ncurses #include (again)
Mikael Berthe <mikael@lilotux.net>
parents: 930
diff changeset
9 # include <ncursesw/ncurses.h>
936
3e592fb33aab Fix ncurses panel #include too
Mikael Berthe <mikael@lilotux.net>
parents: 935
diff changeset
10 # include <ncursesw/panel.h>
935
97e6a6da2b2c Fix ncurses #include (again)
Mikael Berthe <mikael@lilotux.net>
parents: 930
diff changeset
11 #elif HAVE_NCURSES_NCURSES_H
97e6a6da2b2c Fix ncurses #include (again)
Mikael Berthe <mikael@lilotux.net>
parents: 930
diff changeset
12 # include <ncurses/ncurses.h>
936
3e592fb33aab Fix ncurses panel #include too
Mikael Berthe <mikael@lilotux.net>
parents: 935
diff changeset
13 # include <ncurses/panel.h>
3e592fb33aab Fix ncurses panel #include too
Mikael Berthe <mikael@lilotux.net>
parents: 935
diff changeset
14 #else
935
97e6a6da2b2c Fix ncurses #include (again)
Mikael Berthe <mikael@lilotux.net>
parents: 930
diff changeset
15 # include <ncurses.h>
936
3e592fb33aab Fix ncurses panel #include too
Mikael Berthe <mikael@lilotux.net>
parents: 935
diff changeset
16 # include <panel.h>
935
97e6a6da2b2c Fix ncurses #include (again)
Mikael Berthe <mikael@lilotux.net>
parents: 930
diff changeset
17 #endif
97e6a6da2b2c Fix ncurses #include (again)
Mikael Berthe <mikael@lilotux.net>
parents: 930
diff changeset
18
1590
8d1bcc83ae32 Add support for spellchecking with Enchant (caolan)
Mikael Berthe <mikael@lilotux.net>
parents: 1573
diff changeset
19 #if defined(WITH_ENCHANT) || defined(WITH_ASPELL)
1179
0f7e0346d9cb Add aspell support
entragian <entragian@o2.pl>
parents: 1177
diff changeset
20 void spellcheck_init(void);
0f7e0346d9cb Add aspell support
entragian <entragian@o2.pl>
parents: 1177
diff changeset
21 void spellcheck_deinit(void);
0f7e0346d9cb Add aspell support
entragian <entragian@o2.pl>
parents: 1177
diff changeset
22 //static void spellcheck(char*, char*);
0f7e0346d9cb Add aspell support
entragian <entragian@o2.pl>
parents: 1177
diff changeset
23 #endif
0f7e0346d9cb Add aspell support
entragian <entragian@o2.pl>
parents: 1177
diff changeset
24
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
25 #include <mcabber/hbuf.h>
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
26 #include <mcabber/logprint.h>
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
27 #include <mcabber/roster.h>
374
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents: 370
diff changeset
28
761
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
29 #define INPUTLINE_LENGTH 1024
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
30
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
31 // Only used in screen.c; this is the maximum line number
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
32 // in a multi-line message. Should be < 1000
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
33 // Note: message length is limited by the HBB_BLOCKSIZE size too
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
34 #define MULTILINE_MAX_LINE_NUMBER 299
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
35
991
ef10906691bb Chatstates: add composing timeout
Mikael Berthe <mikael@lilotux.net>
parents: 940
diff changeset
36 // When chatstates are enabled, timeout (in seconds) before "composing"
ef10906691bb Chatstates: add composing timeout
Mikael Berthe <mikael@lilotux.net>
parents: 940
diff changeset
37 // becomes "paused" because of user inactivity.
ef10906691bb Chatstates: add composing timeout
Mikael Berthe <mikael@lilotux.net>
parents: 940
diff changeset
38 // Warning: setting this very low will cause more network traffic.
994
eb416c9633b5 Chatstates: decrease the composing timeout
Mikael Berthe <mikael@lilotux.net>
parents: 993
diff changeset
39 #define COMPOSING_TIMEOUT 6L
991
ef10906691bb Chatstates: add composing timeout
Mikael Berthe <mikael@lilotux.net>
parents: 940
diff changeset
40
739
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
41 enum colors {
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
42 COLOR_GENERAL = 3,
785
7e0562e3bc83 Replace color_highlight with color_msgout
Mikael Berthe <mikael@lilotux.net>
parents: 779
diff changeset
43 COLOR_MSGOUT,
1204
e802ec0c02d2 Basic support for nick highlighting in MUC rooms (the whole line is colored)
Mikael Berthe <mikael@lilotux.net>
parents: 1190
diff changeset
44 COLOR_MSGHL,
739
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
45 COLOR_STATUS,
2028
7b5bd6ad83b4 Add 'color_log' (text color in the log window)
Mikael Berthe <mikael@lilotux.net>
parents: 1985
diff changeset
46 COLOR_LOG,
739
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
47 COLOR_ROSTER,
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
48 COLOR_ROSTERSEL,
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
49 COLOR_ROSTERSELNMSG,
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
50 COLOR_ROSTERNMSG,
1268
dbc907b2d92f Add configurable colors for info and incoming messages (Michal 'vorner' Vaner)
Mikael Berthe <mikael@lilotux.net>
parents: 1254
diff changeset
51 COLOR_INFO,
dbc907b2d92f Add configurable colors for info and incoming messages (Michal 'vorner' Vaner)
Mikael Berthe <mikael@lilotux.net>
parents: 1254
diff changeset
52 COLOR_MSGIN,
1960
b596bcff758e Add 'color_readmark'
Mikael Berthe <mikael@lilotux.net>
parents: 1956
diff changeset
53 COLOR_READMARK,
2090
16b04d64ec88 Add option to highlight timestamp added by server.
Hermitifier
parents: 2063
diff changeset
54 COLOR_TIMESTAMP,
739
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
55 COLOR_max
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
56 };
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
57
0d5fb1d9077c Allow "bright" text colors
Mikael Berthe <mikael@lilotux.net>
parents: 730
diff changeset
58 int COLOR_ATTRIB[COLOR_max];
24
e88b15cbf2de [/trunk] Changeset 40 by mikael
mikael
parents:
diff changeset
59
761
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
60 extern int update_roster;
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
61 extern gboolean chatstates_disabled;
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
62 extern gboolean Autoaway;
24
e88b15cbf2de [/trunk] Changeset 40 by mikael
mikael
parents:
diff changeset
63
761
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
64 typedef struct {
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
65 int value;
930
a75f7a13df7b UTF-8 terminal support (Reimar Döffinger)
Mikael Berthe <mikael@lilotux.net>
parents: 891
diff changeset
66 int utf8;
761
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
67 enum {
2063
1b5a19b2ba44 Get rid of a GCC build warning
Mikael Berthe <mikael@lilotux.net>
parents: 2032
diff changeset
68 MKEY_NONE = 0,
1b5a19b2ba44 Get rid of a GCC build warning
Mikael Berthe <mikael@lilotux.net>
parents: 2032
diff changeset
69 MKEY_META,
763
6866ee749225 More keycodes
Mikael Berthe <mikael@lilotux.net>
parents: 761
diff changeset
70 MKEY_EQUIV,
6866ee749225 More keycodes
Mikael Berthe <mikael@lilotux.net>
parents: 761
diff changeset
71 MKEY_CTRL_PGUP,
6866ee749225 More keycodes
Mikael Berthe <mikael@lilotux.net>
parents: 761
diff changeset
72 MKEY_CTRL_PGDOWN,
765
72626e9d60bd Create init_keycodes(), add 2 screen escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 763
diff changeset
73 MKEY_SHIFT_PGUP,
72626e9d60bd Create init_keycodes(), add 2 screen escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 763
diff changeset
74 MKEY_SHIFT_PGDOWN,
763
6866ee749225 More keycodes
Mikael Berthe <mikael@lilotux.net>
parents: 761
diff changeset
75 MKEY_CTRL_SHIFT_PGUP,
794
32d5298f9f8d Add a few keycode sequences
Mikael Berthe <mikael@lilotux.net>
parents: 785
diff changeset
76 MKEY_CTRL_SHIFT_PGDOWN,
32d5298f9f8d Add a few keycode sequences
Mikael Berthe <mikael@lilotux.net>
parents: 785
diff changeset
77 MKEY_CTRL_HOME,
32d5298f9f8d Add a few keycode sequences
Mikael Berthe <mikael@lilotux.net>
parents: 785
diff changeset
78 MKEY_CTRL_END,
32d5298f9f8d Add a few keycode sequences
Mikael Berthe <mikael@lilotux.net>
parents: 785
diff changeset
79 MKEY_CTRL_INS,
826
3a3c7a017904 Add Ctrl-Shift-{Home,End} key code sequences
Mikael Berthe <mikael@lilotux.net>
parents: 807
diff changeset
80 MKEY_CTRL_DEL,
3a3c7a017904 Add Ctrl-Shift-{Home,End} key code sequences
Mikael Berthe <mikael@lilotux.net>
parents: 807
diff changeset
81 MKEY_CTRL_SHIFT_HOME,
1561
2e86c1cc4eb1 Map mouse events to p* keycodes
franky
parents: 1503
diff changeset
82 MKEY_CTRL_SHIFT_END,
2e86c1cc4eb1 Map mouse events to p* keycodes
franky
parents: 1503
diff changeset
83 MKEY_MOUSE
761
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
84 } mcode;
4532a9fe0e8c Handle some keyboard escape sequences
Mikael Berthe <mikael@lilotux.net>
parents: 739
diff changeset
85 } keycode;
276
627925d885de Limit the number of lines in multi-line messages
Mikael Berthe <mikael@lilotux.net>
parents: 267
diff changeset
86
1292
382ec54b584e Muc nick coloring functionality
Michal 'vorner' Vaner <vorner@ucw.cz>
parents: 1290
diff changeset
87 typedef enum {
382ec54b584e Muc nick coloring functionality
Michal 'vorner' Vaner <vorner@ucw.cz>
parents: 1290
diff changeset
88 MC_ALL,
382ec54b584e Muc nick coloring functionality
Michal 'vorner' Vaner <vorner@ucw.cz>
parents: 1290
diff changeset
89 MC_PRESET,
382ec54b584e Muc nick coloring functionality
Michal 'vorner' Vaner <vorner@ucw.cz>
parents: 1290
diff changeset
90 MC_OFF,
382ec54b584e Muc nick coloring functionality
Michal 'vorner' Vaner <vorner@ucw.cz>
parents: 1290
diff changeset
91 MC_REMOVE
382ec54b584e Muc nick coloring functionality
Michal 'vorner' Vaner <vorner@ucw.cz>
parents: 1290
diff changeset
92 } muccoltype;
382ec54b584e Muc nick coloring functionality
Michal 'vorner' Vaner <vorner@ucw.cz>
parents: 1290
diff changeset
93
1176
547a8ca7c1a8 Move init_bindings() to screen.c, with a few updates
Mikael Berthe <mikael@lilotux.net>
parents: 1172
diff changeset
94
1783
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
95 void scr_write_incoming_message(const char *jidfrom, const char *text,
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
96 time_t timestamp, guint prefix,
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
97 unsigned mucnicklen);
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
98 void scr_write_outgoing_message(const char *jidto, const char *text,
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
99 guint prefix, gpointer xep184);
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
100
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
101 void scr_getch(keycode *kcode);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
102 void scr_process_key(keycode kcode);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
103
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
104 void scr_init_bindings(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
105 void scr_init_locale_charset(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
106 void scr_init_curses(void);
2101
f56c214a19dc Add a guard for 'attention_char'
Mikael Berthe <mikael@lilotux.net>
parents: 2090
diff changeset
107 void scr_init_settings(void);
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
108 void scr_terminate_curses(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
109 gboolean scr_curses_status(void);
2231
387cea2a1a81 Fix resizing with --enable-sigwinch
Mikael Berthe <mikael@lilotux.net>
parents: 2164
diff changeset
110 void scr_resize(void);
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
111 void scr_draw_main_window(unsigned int fullinit);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
112 void scr_draw_roster(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
113 void scr_update_main_status(int forceupdate);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
114 void scr_update_chat_status(int forceupdate);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
115 void scr_roster_visibility(int status);
2032
f740c4128f76 Fix receipts handling according to recent XEP updates
Myhailo Danylenko <isbear@ukrpost.net>
parents: 2028
diff changeset
116 void scr_remove_receipt_flag(const char *jidto, gconstpointer xep184);
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
117 void scr_show_buddy_window(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
118 int scr_buddy_buffer_exists(const char *jid);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
119 void scr_update_buddy_window(void);
1413
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1359
diff changeset
120 void scr_set_chatmode(int enable);
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1359
diff changeset
121 int scr_get_chatmode(void);
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1359
diff changeset
122 void scr_set_multimode(int enable, char *subject);
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1359
diff changeset
123 int scr_get_multimode(void);
891
78f4971578dd Add a "special" parameter to scr_setmsgflag_if_needed()
Mikael Berthe <mikael@lilotux.net>
parents: 873
diff changeset
124 void scr_setmsgflag_if_needed(const char *jid, int special);
1802
b135572fcd26 Add urgent flag per screen buffer
Mikael Berthe <mikael@lilotux.net>
parents: 1791
diff changeset
125 void scr_setattentionflag_if_needed(const char *bjid, int special,
b135572fcd26 Add urgent flag per screen buffer
Mikael Berthe <mikael@lilotux.net>
parents: 1791
diff changeset
126 guint value, enum setuiprio_ops action);
238
8e30b2bb380e [/trunk] Changeset 251 by mikael
mikael
parents: 236
diff changeset
127 void scr_append_multiline(const char *line);
1413
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1359
diff changeset
128 const char *scr_get_multiline(void);
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1359
diff changeset
129 const char *scr_get_multimode_subj(void);
24
e88b15cbf2de [/trunk] Changeset 40 by mikael
mikael
parents:
diff changeset
130
1487
f61ed2466f7c Minor style upgrade
Mikael Berthe <mikael@lilotux.net>
parents: 1485
diff changeset
131 guint scr_getprefixwidth(void);
1761
61f0482d3993 Limit = alignment to 1/3 of screen in option list
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1733
diff changeset
132 guint scr_gettextwidth(void);
1791
6e0a8bfb3a01 Add scr_gettextheight()
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1783
diff changeset
133 guint scr_gettextheight(void);
1819
d13315366ba5 Add scr_getlogwinheight()
Mikael Berthe <mikael@lilotux.net>
parents: 1811
diff changeset
134 guint scr_getlogwinheight(void);
2090
16b04d64ec88 Add option to highlight timestamp added by server.
Hermitifier
parents: 2063
diff changeset
135 size_t scr_line_prefix(hbb_line *line, char *prefix, guint preflen);
1483
e74cc83e7158 Refactor scr_UpdateWindow()
Mikael Berthe <mikael@lilotux.net>
parents: 1424
diff changeset
136
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
137 void scr_beep(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
138 void scr_check_auto_away(int activity);
1254
401639413340 More jabber:iq:last support... (misc)
Mikael Berthe <mikael@lilotux.net>
parents: 1226
diff changeset
139
991
ef10906691bb Chatstates: add composing timeout
Mikael Berthe <mikael@lilotux.net>
parents: 940
diff changeset
140
104
fe7257d251ac [/trunk] Changeset 118 by mikael
mikael
parents: 81
diff changeset
141 // For commands...
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
142 void scr_roster_top(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
143 void scr_roster_bottom(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
144 void scr_roster_up_down(int updown, unsigned int n);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
145 void scr_roster_prev_group(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
146 void scr_roster_next_group(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
147 void scr_roster_search(char *);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
148 void scr_roster_jump_jid(char *);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
149 void scr_roster_jump_alternate(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
150 void scr_roster_unread_message(int);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
151 void scr_roster_display(const char *);
2160
798baf5db4eb Add /roster next_open_buffer
Mikael Berthe <mikael@lilotux.net>
parents: 2143
diff changeset
152 void scr_roster_next_open_buffer(void);
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
153
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
154 void scr_buffer_top_bottom(int topbottom);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
155 void scr_buffer_clear(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
156 void scr_buffer_scroll_lock(int lock);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
157 void scr_buffer_purge(int, const char*);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
158 void scr_buffer_purge_all(int);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
159 void scr_buffer_search(int direction, const char *text);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
160 void scr_buffer_percent(int pc);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
161 void scr_buffer_date(time_t t);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
162 void scr_buffer_dump(const char *file);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
163 void scr_buffer_list(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
164 void scr_buffer_scroll_up_down(int updown, unsigned int nblines);
1961
39021fd6b0e1 Try to improve readmarks in some cases
Mikael Berthe <mikael@lilotux.net>
parents: 1960
diff changeset
165 void scr_buffer_readmark(gchar action);
1956
f309f343070c Add command /buffer readmark
Mikael Berthe <mikael@lilotux.net>
parents: 1949
diff changeset
166 void scr_buffer_jump_readmark(void);
1780
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
167
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
168 bool scr_roster_color(const char *status, const char *wildcard,
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
169 const char *color);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
170 void scr_roster_clear_color(void);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
171 void scr_muc_color(const char *muc, muccoltype type);
e4378fbab5d7 Major API cleanup - bump API to 4
Mikael Berthe <mikael@lilotux.net>
parents: 1761
diff changeset
172 void scr_muc_nick_color(const char *nick, const char *color);
1226
2521efbf3b72 New (debug) subcommand, buffer list
Mikael Berthe <mikael@lilotux.net>
parents: 1204
diff changeset
173
1171
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
174 void readline_transpose_chars(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
175 void readline_forward_kill_word(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
176 void readline_backward_kill_word(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
177 void readline_backward_word(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
178 void readline_forward_word(void);
1172
334ae9f498f1 Add some more iline functions (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1171
diff changeset
179 void readline_updowncase_word(int);
334ae9f498f1 Add some more iline functions (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1171
diff changeset
180 void readline_capitalize_word(void);
1171
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
181 void readline_backward_char(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
182 void readline_forward_char(void);
2164
038c4d601011 Simplify handling of command '/quit'
franky
parents: 2160
diff changeset
183 void readline_accept_line(int down_history);
1985
0870005f7efc Add command /iline clear_history
Mikael Berthe <mikael@lilotux.net>
parents: 1961
diff changeset
184 void readline_clear_history(void);
1172
334ae9f498f1 Add some more iline functions (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1171
diff changeset
185 void readline_cancel_completion(void);
2143
2f294c2b6778 Add a backward completion (Oleg)
Mikael Berthe <mikael@lilotux.net>
parents: 2101
diff changeset
186 void readline_do_completion(gboolean fwd);
1172
334ae9f498f1 Add some more iline functions (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1171
diff changeset
187 void readline_refresh_screen(void);
1503
c74cfe7fd848 Add option --show-roster to command chat_disable.
Mikael Berthe <mikael@lilotux.net>
parents: 1489
diff changeset
188 void readline_disable_chat_mode(guint show_roster);
1190
be06bbe7e449 Add readline_hist_beginning_search_bwd/fwd functions
Mikael Berthe <mikael@lilotux.net>
parents: 1179
diff changeset
189 void readline_hist_beginning_search_bwd(void);
be06bbe7e449 Add readline_hist_beginning_search_bwd/fwd functions
Mikael Berthe <mikael@lilotux.net>
parents: 1179
diff changeset
190 void readline_hist_beginning_search_fwd(void);
1171
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
191 void readline_hist_prev(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
192 void readline_hist_next(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
193 void readline_backward_kill_char(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
194 void readline_forward_kill_char(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
195 void readline_iline_start(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
196 void readline_iline_end(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
197 void readline_backward_kill_iline(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
198 void readline_forward_kill_iline(void);
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
199 void readline_send_multiline(void);
1945
518740bcd78b Add /iline iline_insert (Hermitifier)
Mikael Berthe <mikael@lilotux.net>
parents: 1819
diff changeset
200 void readline_insert(const char *toinsert);
1171
03a38b7ad2e0 Add a collection of commands for key bindings (Lego12239)
Mikael Berthe <mikael@lilotux.net>
parents: 1138
diff changeset
201
1783
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
202
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
203 // For backward compatibility:
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
204
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
205 #define scr_WriteIncomingMessage scr_write_incoming_message
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
206 #define scr_WriteOutgoingMessage scr_write_outgoing_message
af3de54ef986 Convert scr_LogPrint() to scr_log_print()
Mikael Berthe <mikael@lilotux.net>
parents: 1780
diff changeset
207
24
e88b15cbf2de [/trunk] Changeset 40 by mikael
mikael
parents:
diff changeset
208 #endif
576
8b3db0b555a1 Add Vim modelines
Mikael Berthe <mikael@lilotux.net>
parents: 515
diff changeset
209
1811
e6d355e50d7a Update Vim modelines
Mikael Berthe <mikael@lilotux.net>
parents: 1802
diff changeset
210 /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */