]>
git.gir.st - VIper.git/blob - schemes.h
4 #include "viiper.h" /* for enum items */
12 #define BORDER(v,h) op.sch->border[BORDER_ ## v][BORDER_ ## h]
17 char* snake
[5][5]; /* [predecessor][successor] */
18 char* color
[3]; /* 0=even, 1=odd, 2=head */
20 char* food
[NUM_FOODS
];
23 /* for en-/disabling e.g. DEC charset: */
27 int cell_width
; /* number of characters per cell */
28 int display_width
; /* how wide a cell appears to be */
31 struct scheme unic0de
= {
39 .snake
= { /* sorted like in the enum directions */
72 .color
= {"32", "92", "92;1"},
87 struct scheme vt220_charset
= {
89 {"\033#6\x6c","\x71","\x6b"},
90 {"\033#6\x78"," ","\x78"},
91 {"\033#6\x6d","\x71","\x6a"},
96 {"@","A",">","V","<"}, //head
97 {"#","#","#","#","#"},
98 {"#","#","#","#","#"},
99 {"#","#","#","#","#"},
100 {"#","#","#","#","#"},
102 .color
= {"0", "0", "1"},
104 .food
= { "$", "%", "&" },
107 .init_seq
= "\033(0\033*B\x0f" /* G0=Graphics, G2=ASCII, invoke G0 */
108 "\033[?3l", /* disable 132 column mode (DECCOLM) */
109 .reset_seq
= "\033(B" /* reset to DEC Multinational Character Set */
110 "\033[?3h", /* reenable DECCOLM (WARN: unconditionally!)*/