-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.def.h
59 lines (52 loc) · 1.94 KB
/
config.def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* See LICENSE file for copyright and license details. */
/* defaults */
char host[32] = "irc.libera.chat";
char port[8] = "6667";
char nick[32] = {0}; /* 0 means getenv("USER") */
char logfile[64] = "/tmp/circo.log";
/* passed to strftime(3) */
static char prefix_format[] = "%T | ";
/* Used if no message is specified */
#define QUIT_MESSAGE "circo"
/* Called for background mentions */
#define NOTIFY_SCRIPT ""
/* color scheme */
static int colors[ColorLast][5] = {
[NickNormal] = {4, -1},
[NickMention] = {5, 0, 1, -1},
[IRCMessage] = {8, 0, -1},
};
/* available commands */
static Command commands[] = {
/* command function */
{ "close", cmd_close },
{ "connect", cmd_server },
{ "msg", cmd_msg },
{ "quit", cmd_quit },
{ "server", cmd_server },
{ "topic", cmd_topic },
{ "rejoinall", cmd_rejoinall },
};
/* key definitions */
static Key keys[] = {
/* key function argument */
{ CTRL('u'), cmdln_clear, {0} },
{ KeyBackspace, cmdln_chldel, {0} },
{ CTRL('d'), cmdln_chrdel, {0} },
{ '\t', cmdln_complete, {0} },
{ CTRL('a'), cmdln_cursor, {.i = 0}},
{ CTRL('e'), cmdln_cursor, {.i = 999}},
{ CTRL('h'), cmdln_cursor, {.i = -1}},
{ KeyLeft, cmdln_cursor, {.i = -1}},
{ CTRL('l'), cmdln_cursor, {.i = +1}},
{ KeyRight, cmdln_cursor, {.i = +1}},
{ '\n', cmdln_submit, {0} },
{ CTRL('w'), cmdln_wdel, {0} },
{ CTRL('n'), focusnext, {0} },
{ CTRL('p'), focusprev, {0} },
{ KeyPgUp, scroll, {.i = -20} },
{ KeyPgDw, scroll, {.i = +20} },
{ KeyEnd, scroll, {.i = 0} },
{ KeyUp, history, {.i = -1} },
{ KeyDown, history, {.i = +1} },
};