color config for code blocks
[smdp.git] / include / config.h
1 #if !defined( CONFIG_H )
2 #define CONFIG_H
3
4 /*
5  * User configuration file
6  * Copyright (C) 2018 Michael Goehler
7  *
8  * This file is part of mdp.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24
25 // unordered list characters
26 //
27 // you can also override via env vars:
28 // export MDP_LIST_OPEN1="    " MDP_LIST_OPEN2="    " MDP_LIST_OPEN3="    "
29 // export MDP_LIST_HEAD1=" ■  " MDP_LIST_HEAD2=" ●  " MDP_LIST_HEAD3=" ▫  "
30 // or export MDP_LIST_OPEN to override all MDP_LIST_OPENx variables
31 // and similarly for MDP_LIST_HEAD
32 static const char *list_open1 = " |  ";
33 static const char *list_open2 = " |  ";
34 static const char *list_open3 = " |  ";
35 static const char *list_head1 = " +- ";
36 static const char *list_head2 = " +- ";
37 static const char *list_head3 = " +- ";
38
39 #define GOTO_SLIDE_DELAY 5  // tenths of seconds
40
41 // colors - you can only set in 8-bit color mode
42 //
43 /* Use the ncurses defined colors, here's a list of them:
44  *      COLOR_BLACK
45  *      COLOR_RED
46  *      COLOR_GREEN
47  *      COLOR_YELLOW
48  *      COLOR_BLUE
49  *      COLOR_MAGENTA
50  *      COLOR_CYAN
51  *      COLOR_WHITE
52  */
53 #define FG_COLOR        COLOR_WHITE
54 #define BG_COLOR        COLOR_BLACK
55 #define TITLE_COLOR     COLOR_YELLOW
56 #define HEADER_COLOR    COLOR_BLUE
57 #define BOLD_COLOR      COLOR_RED
58 #define CODEFG_COLOR    COLOR_BLACK
59 #define CODEBG_COLOR    COLOR_WHITE
60
61 // keybindings
62 static const int prev_slide_binding[] = {
63     KEY_UP,
64     KEY_LEFT,
65     KEY_PPAGE,
66     8,   // BACKSPACE (ascii)
67     127, // BACKSPACE (xterm)
68     263, // BACKSPACE (getty)
69     'h',
70     'k',
71     0
72 };
73 static const int next_slide_binding[] = {
74     KEY_DOWN,
75     KEY_RIGHT,
76     KEY_NPAGE,
77     '\n', // ENTER
78     ' ',  // SPACE
79     'j',
80     'l',
81     0
82 };
83 static const int first_slide_binding[] = {
84     'g',
85     KEY_HOME,
86     0
87 };
88 static const int last_slide_binding[] = {
89     'G',
90     KEY_END,
91     0
92 };
93 static const int reload_binding[] = {
94     'r',
95     0
96 };
97 static const int quit_binding[] = {
98     'q',
99     0
100 };
101
102 #endif // !defined( CONFIG_H )