Skip to content

Instantly share code, notes, and snippets.

@uobikiemukot
Created March 3, 2015 02:14
Show Gist options
  • Save uobikiemukot/be75dc0a9a7ed9c3e1a5 to your computer and use it in GitHub Desktop.
Save uobikiemukot/be75dc0a9a7ed9c3e1a5 to your computer and use it in GitHub Desktop.
solarized color theme for yaft part2
/* 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,
*/
/* solarized */
DEFAULT_FG = 12,
DEFAULT_BG = 8,
ACTIVE_CURSOR_COLOR = 2,
PASSIVE_CURSOR_COLOR = 1,
};
/* misc */
enum {
VERBOSE = true, /* 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 = true, /* always draw even if vt is not active */
VT_CONTROL = true,
SUBSTITUTE_HALF = 0xFFFD, /* used for missing glyph(single width): U+FFFD (REPLACEMENT CHARACTER)) */
SUBSTITUTE_WIDE = 0x3013, /* used for missing glyph(double width): U+3013 (GETA MARK) */
REPLACEMENT_CHAR = 0xFFFD, /* used for malformed UTF-8 sequence : U+FFFD (REPLACEMENT CHARACTER) */
};
/* 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/tty";
#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: refer SHELL environment variable at first */
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment