]>
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* item
[NUM_FOODS
];
22 /* for en-/disabling e.g. DEC charset: */
26 int cell_width
; /* number of characters per cell */
27 int display_width
; /* how wide a cell appears to be */
30 struct scheme unic0de
= {
38 .snake
= { /* sorted like in the enum directions */
71 .color
= {"32", "92", "92;1"},
83 struct scheme vt220_charset
= {
85 {"\033#6\x6c","\x71","\x6b"},
86 {"\033#6\x78"," ","\x78"},
87 {"\033#6\x6d","\x71","\x6a"},
92 {"@","A",">","V","<"}, //head
93 {"#","#","#","#","#"},
94 {"#","#","#","#","#"},
95 {"#","#","#","#","#"},
96 {"#","#","#","#","#"},
98 .color
= {"0", "0", "1"},
100 .item
= { "$", "%", "&"},
102 .init_seq
= "\033(0\033*B\x0f" /* G0=Graphics, G2=ASCII, invoke G0 */
103 "\033[?3l", /* disable 132 column mode (DECCOLM) */
104 .reset_seq
= "\033(B" /* reset to DEC Multinational Character Set */
105 "\033[?3h", /* reenable DECCOLM (WARN: unconditionally!)*/