-
Notifications
You must be signed in to change notification settings - Fork 44
/
conf.h
48 lines (43 loc) · 1.65 KB
/
conf.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
/* See LICENSE for licence details. */
/* conf.h: define custom variables */
/* color: index number of color_palette[] (see color.h) */
enum {
DEFAULT_FG = 7,
DEFAULT_BG = 0,
ACTIVE_CURSOR_COLOR = 2,
PASSIVE_CURSOR_COLOR = 1,
};
/* misc */
enum {
VERBOSE = false, /* write dump of input to stdout, debug message to stderr */
TABSTOP = 8, /* hardware tabstop */
LAZY_DRAW = true, /* don't draw when input data size is larger than BUFSIZE */
BACKGROUND_DRAW = false, /* always draw even if vt is not active */
VT_CONTROL = true, /* handle vt switching */
FORCE_TEXT_MODE = false, /* force KD_TEXT mode (not use KD_GRAPHICS mode) */
SUBSTITUTE_HALF = 0x0020, /* used for missing glyph(single width): U+0020 (SPACE) */
SUBSTITUTE_WIDE = 0x3000, /* used for missing glyph(double width): U+3000 (IDEOGRAPHIC SPACE) */
REPLACEMENT_CHAR = 0x003F, /* used for malformed UTF-8 sequence : U+003F (QUESTION MARK) */
};
/* TERM value */
const char *term_name = "yaft-256color";
/* framubuffer device */
#if defined(__linux__)
const char *fb_path = "/dev/fb0";
#elif defined(__FreeBSD__)
const char *fb_path = "/dev/ttyv0";
#elif defined(__NetBSD__)
const char *fb_path = "/dev/ttyE0";
#elif defined(__OpenBSD__)
const char *fb_path = "/dev/ttyC0";
#elif defined(__ANDROID__)
const char *fb_path = "/dev/graphics/fb0";
#endif
/* shell */
#if defined(__linux__) || defined(__MACH__)
const char *shell_cmd = "/bin/bash";
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
const char *shell_cmd = "/bin/csh";
#elif defined(__ANDROID__)
const char *shell_cmd = "/system/bin/sh";
#endif