]>
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"},
90 struct scheme vt220_charset
= {
92 {"\033#6\x6c","\x71","\x6b"},
93 {"\033#6\x78"," ","\x78"},
94 {"\033#6\x6d","\x71","\x6a"},
99 {"@","A",">","V","<"}, //head
100 {"#","#","#","#","#"},
101 {"#","#","#","#","#"},
102 {"#","#","#","#","#"},
103 {"#","#","#","#","#"},
105 .color
= {"0", "0", "1"},
107 .food
= { "$", "%", "&", },
108 .boni
= { "x", "|", "s", "f", },
110 .init_seq
= "\033(0\033*B\x0f" /* G0=Graphics, G2=ASCII, invoke G0 */
111 "\033[?3l", /* disable 132 column mode (DECCOLM) */
112 .reset_seq
= "\033(B" /* reset to DEC Multinational Character Set */
113 "\033[?3h", /* reenable DECCOLM (WARN: unconditionally!)*/