Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
graphic charset and a few more escapes.
[st.git]
/
config.h
diff --git
a/config.h
b/config.h
index
67c854e
..
0e04ab1
100644
(file)
--- a/
config.h
+++ b/
config.h
@@
-3,7
+3,7
@@
#define FONT "fixed"
#define BORDER 3
#define FONT "fixed"
#define BORDER 3
-#define LINESPACE
1
/* additional pixel between each line */
+#define LINESPACE
0
/* additional pixel between each line */
/* Terminal colors */
static const char *colorname[] = {
/* Terminal colors */
static const char *colorname[] = {
@@
-36,3
+36,38
@@
static Key key[] = {
{ XK_Up, "\033[A" },
{ XK_Down, "\033[B" },
};
{ XK_Up, "\033[A" },
{ XK_Down, "\033[B" },
};
+
+static char gfx[] = {
+ ['}'] = 'f',
+ ['.'] = 'v',
+ [','] = '<',
+ ['+'] = '>',
+ ['-'] = '^',
+ ['h'] = '#',
+ ['~'] = 'o',
+ ['a'] = ':',
+ ['f'] = '\\',
+ ['`'] = '+',
+ ['z'] = '>',
+ ['{'] = '*',
+ ['q'] = '-',
+ ['i'] = '#',
+ ['n'] = '+',
+ ['y'] = '<',
+ ['m'] = '+',
+ ['j'] = '+',
+ ['|'] = '!',
+ ['g'] = '#',
+ ['o'] = '~',
+ ['p'] = '-',
+ ['r'] = '-',
+ ['s'] = '_',
+ ['0'] = '#',
+ ['w'] = '+',
+ ['u'] = '+',
+ ['t'] = '+',
+ ['v'] = '+',
+ ['l'] = '+',
+ ['k'] = '+',
+ ['x'] = '|',
+};