]>
git.gir.st - VIper.git/blob - schemes.h
4 #include "viiper.h" /* for enum items */
12 #define BORDER(v,h) op.scheme->border[BORDER_ ## v][BORDER_ ## h]
17 char* snake
[5][5]; /* [predecessor][successor] */
19 char* item
[NUM_FOODS
];
21 /* for en-/disabling e.g. DEC charset: */
28 struct scheme unic0de
= {
36 .snake
= { /* sorted like in the enum directions */
79 struct scheme vt220_charset
= {
81 {"\033#6\x6c","\x71","\x6b"},
82 {"\033#6\x78"," ","\x78"},
83 {"\033#6\x6d","\x71","\x6a"},
88 {"@","A",">","V","<"}, //head
89 {"#","#","#","#","#"},
90 {"#","#","#","#","#"},
91 {"#","#","#","#","#"},
92 {"#","#","#","#","#"},
95 .item
= { "$", "%", "&"},
97 .init_seq
= "\033(0\033*B\x0f" /* G0=Graphics, G2=ASCII, invoke G0 */
98 "\033[?3l", /* disable 132 column mode (DECCOLM) */
99 .reset_seq
= "\033(B" /* reset to DEC Multinational Character Set */
100 "\033[?3h", /* reenable DECCOLM (WARN: unconditionally!)*/