|
|
@ -1,7 +1,7 @@ |
|
|
|
#define TAB 8 |
|
|
|
#define TAB 8 |
|
|
|
#define TNAME "st-256color" |
|
|
|
#define TNAME "st-256color" |
|
|
|
#define FONT "6x13" |
|
|
|
#define FONT "-misc-*-medium-r-semicondensed-*-13-*-*-*-*-*-iso8859-*" |
|
|
|
#define BOLDFONT "6x13bold" |
|
|
|
#define BOLDFONT "-misc-*-bold-r-semicondensed-*-13-*-*-*-*-*-iso8859-*" |
|
|
|
#define BORDER 2 |
|
|
|
#define BORDER 2 |
|
|
|
#define SHELL "/bin/sh" |
|
|
|
#define SHELL "/bin/sh" |
|
|
|
|
|
|
|
|
|
|
@ -26,7 +26,7 @@ static const char *colorname[] = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/* Default colors (colorname index) */ |
|
|
|
/* Default colors (colorname index) */ |
|
|
|
/* foreground, background, cursor, visual bell */ |
|
|
|
/* foreground, background, cursor */ |
|
|
|
#define DefaultFG 7 |
|
|
|
#define DefaultFG 7 |
|
|
|
#define DefaultBG 0 |
|
|
|
#define DefaultBG 0 |
|
|
|
#define DefaultCS 1 |
|
|
|
#define DefaultCS 1 |
|
|
@ -53,38 +53,39 @@ static Key key[] = { |
|
|
|
{ XK_F12, "\033[24~" }, |
|
|
|
{ XK_F12, "\033[24~" }, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* line drawing characters (sometime specific to each font...) */ |
|
|
|
static char gfx[] = { |
|
|
|
static char gfx[] = { |
|
|
|
['}'] = 'f', |
|
|
|
|
|
|
|
['.'] = 'v', |
|
|
|
|
|
|
|
[','] = '<', |
|
|
|
|
|
|
|
['+'] = '>', |
|
|
|
['+'] = '>', |
|
|
|
|
|
|
|
[','] = '<', |
|
|
|
['-'] = '^', |
|
|
|
['-'] = '^', |
|
|
|
|
|
|
|
['.'] = 'v', |
|
|
|
|
|
|
|
['0'] = '#', |
|
|
|
|
|
|
|
['`'] = 0x01, |
|
|
|
|
|
|
|
['a'] = 0x02, |
|
|
|
|
|
|
|
['f'] = 'o', |
|
|
|
|
|
|
|
['g'] = '+', |
|
|
|
['h'] = '#', |
|
|
|
['h'] = '#', |
|
|
|
['~'] = 'o', |
|
|
|
|
|
|
|
['a'] = ':', |
|
|
|
|
|
|
|
['f'] = '\\', |
|
|
|
|
|
|
|
['`'] = '+', |
|
|
|
|
|
|
|
['z'] = '>', |
|
|
|
|
|
|
|
['{'] = '*', |
|
|
|
|
|
|
|
['q'] = '-', |
|
|
|
|
|
|
|
['i'] = '#', |
|
|
|
['i'] = '#', |
|
|
|
['n'] = '+', |
|
|
|
['j'] = 0x0B, |
|
|
|
['y'] = '<', |
|
|
|
['k'] = 0x0C, |
|
|
|
['m'] = '+', |
|
|
|
['l'] = 0x0D, |
|
|
|
['j'] = '+', |
|
|
|
['m'] = 0x0E, |
|
|
|
['|'] = '!', |
|
|
|
['n'] = 0x0F, |
|
|
|
['g'] = '#', |
|
|
|
['o'] = 0x10, |
|
|
|
['o'] = '~', |
|
|
|
['p'] = 0x11, |
|
|
|
['p'] = '-', |
|
|
|
['q'] = 0x12, |
|
|
|
['r'] = '-', |
|
|
|
['r'] = 0x13, |
|
|
|
['s'] = '_', |
|
|
|
['s'] = 0x14, |
|
|
|
['0'] = '#', |
|
|
|
['t'] = 0x15, |
|
|
|
['w'] = '+', |
|
|
|
['u'] = 0x16, |
|
|
|
['u'] = '+', |
|
|
|
['v'] = 0x17, |
|
|
|
['t'] = '+', |
|
|
|
['w'] = 0x18, |
|
|
|
['v'] = '+', |
|
|
|
['x'] = 0x19, |
|
|
|
['l'] = '+', |
|
|
|
['y'] = 0x1A, |
|
|
|
['k'] = '+', |
|
|
|
['z'] = 0x1B, |
|
|
|
['x'] = '|', |
|
|
|
['{'] = 0x1C, |
|
|
|
|
|
|
|
['|'] = 0x1D, |
|
|
|
|
|
|
|
['}'] = 0x1E, |
|
|
|
|
|
|
|
['~'] = 0x1F, |
|
|
|
[255] = 0, |
|
|
|
[255] = 0, |
|
|
|
}; |
|
|
|
}; |
|
|
|