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
= {
118 DEC Special Graphics Character Set:
119 http://vt100.net/docs/vt220-rm/table2-4.html
120 Dynamically Redefinable Character Set:
121 https://vt100.net/docs/vt220-rm/chapter4.html#S4.16 */
131 .field_closed
= "\x61",
132 .field_flagged
= SGR(BOLD
,"\eO!"),
133 .field_question
= SGR(BOLD
,"?"),
134 .mouse_highlight
= SGR(BLINK
,"@"),
135 .mine_normal
= SGR(BOLD
,"*"),
136 .mine_death
= SGR(BOLD
,"#"),
137 .mine_wrongf
= SGR(BOLD
,"/"),
138 .mine_wrongq
= SGR(BOLD
,"\\"),
140 .emoticons
= {":)", ":(", ":D", "\033(B:o\033(0"},
142 .border
= {{"\033#6\x6c","\x71","\x6b"},
143 {"\033#6\x78"," ","\x78"},
144 {"\033[?25l\033#6\x74","\x71","\x75"},
145 {"\033#6\x78"," ","\x78"},
146 {"\033#6\x6d","\x71","\x6a"}},
149 .init_seq
= "\eP0;1;0;4;1;1{P" /* config for DRCS "P": 7x10,erase-all */
150 "??~^^^^/??N????\e\\" /* flag at '!' resembling ▕▀ */
151 "\e(0\e+P\x0f" /* G0=Graphics, G3="P", lock charset to G0 */
152 "\033[?3l", /* switch to 80 column mode */
153 .reset_seq
= "\033(B" /* reset to DEC Multinational Character Set */
154 "\033[?3h", /* switch back to 132 column mode (TODO: shouldn't be hardcoded) */