2 contains color/monchrome schemes for tty-mines.
7 #define SGR(color, string) "\033[" color "m" string "\033[0m"
47 char* mouse_highlight
;
53 char* emoticons
[NUM_EMOT
];
58 /* length of the SGR() in front of '!' and '?' for cursor highlight: */
64 struct minescheme symbols_mono
= {
65 .number
= {" ", "1", "2", "3", "4", "5", "6", "7", "8"},
67 .field_flagged
= "▕▀",
68 .field_question
= "?",
69 .mouse_highlight
= "▓▓",
75 .emoticons
= {":)", ":(", ":D", ":o"},
77 .border
= {{"╔═","══","═╗"},
86 struct minescheme symbols_col1
= {
97 .field_flagged
= SGR(GREY
,"▕\033["BRED
"m▀"),
98 .field_question
= "?",
99 .mouse_highlight
= "▓▓",
101 .mine_death
= SGR(RED
,"*"),
105 .emoticons
= {":)", ":(", ":D", ":o"},
107 .border
= {{"╔═","══","═╗"},
116 struct minescheme symbols_doublewidth
= {
117 /* vt220 multilingual character set,
118 see http://vt100.net/docs/vt220-rm/table2-4.html */
128 .field_closed
= "\x61",
129 .field_flagged
= SGR(BOLD
,"\eO!"),
130 .field_question
= SGR(BOLD
,"?"),
131 .mouse_highlight
= SGR(BLINK
,"@"),
132 .mine_normal
= SGR(BOLD
,"*"),
133 .mine_death
= SGR(BOLD
,"#"),
134 .mine_wrongf
= SGR(BOLD
,"/"),
135 .mine_wrongq
= SGR(BOLD
,"\\"),
137 .emoticons
= {":)", ":(", ":D", "\033(B:o\033(0"},
139 .border
= {{"\033#6\x6c","\x71","\x6b"},
140 {"\033#6\x78"," ","\x78"},
141 {"\033[?25l\033#6\x74","\x71","\x75"},
142 {"\033#6\x78"," ","\x78"},
143 {"\033#6\x6d","\x71","\x6a"}},
146 //.init_seq = "\eP0;1;0;4;1;1{P???~^^^/???N???\e\\" //-- simple, exactly half
147 //.init_seq = "\eP0;1;0;4;1;1{PCK]~???/GGKNKGG\e\\" //-- original w/ smaller bottom
148 .init_seq
= "\eP0;1;0;4;1;1{P??~^^^^/??N????\e\\" /* declare down-line loadable character set */
149 "\e(0\e+P\x0f" /* set the DEC Special Graphics Character Set as G0 and our DECDCL */
150 /* ("P") as G3 and select G0*/
151 "\033[?3l", /* switch to 80 column mode */
152 .reset_seq
= "\033(B" /* reset to DEC Multinational Character Set */
153 "\033[?3h", /* switch back to 132 column mode (TODO: shouldn't be hardcoded) */