]>
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] */
18 char* color
[3]; /* 0=even, 1=odd, 2=head */
20 char* item
[NUM_FOODS
];
22 /* for en-/disabling e.g. DEC charset: */
29 struct scheme unic0de
= {
37 .snake
= { /* sorted like in the enum directions */
70 .color
= {"32", "92", "92;1"},
81 struct scheme vt220_charset
= {
83 {"\033#6\x6c","\x71","\x6b"},
84 {"\033#6\x78"," ","\x78"},
85 {"\033#6\x6d","\x71","\x6a"},
90 {"@","A",">","V","<"}, //head
91 {"#","#","#","#","#"},
92 {"#","#","#","#","#"},
93 {"#","#","#","#","#"},
94 {"#","#","#","#","#"},
96 .color
= {"0", "0", "1"},
98 .item
= { "$", "%", "&"},
100 .init_seq
= "\033(0\033*B\x0f" /* G0=Graphics, G2=ASCII, invoke G0 */
101 "\033[?3l", /* disable 132 column mode (DECCOLM) */
102 .reset_seq
= "\033(B" /* reset to DEC Multinational Character Set */
103 "\033[?3h", /* reenable DECCOLM (WARN: unconditionally!)*/