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