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
];
63 struct minescheme symbols_mono
= {
64 .number
= {" ", "1", "2", "3", "4", "5", "6", "7", "8"},
66 .field_flagged
= SGR(REV
,"!"),
67 .field_question
= SGR(REV
,"?"),
68 .mouse_highlight
= "▓▓",
74 .emoticons
= {":)", ":(", ":D", ":o"},
76 .border
= {{"╔═","══","═╗"},
83 .flag_offset
= 4, /* length of the escape sequece infront of .field_flagged and .field_question for cursor highlighting */
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(REV
,SGR(BOLD
,"!")),
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#6\x74","\x71","\x75"},
142 {"\033#6\x78"," ","\x78"},
143 {"\033#6\x6d","\x71","\x6a"}},
147 .init_seq
= "\033(0" /* enable DEC Special Graphics Character Set */
148 "\033[?3l", /* switch to 80 column mode */
149 .reset_seq
= "\033(B" /* reset to DEC Multinational Character Set */
150 "\033[?3h", /* switch back to 132 column mode (TODO: shouldn't be hardcoded) */