From c7cf2b608d3ef65e422d2eff511f87eb54e1c295 Mon Sep 17 00:00:00 2001 From: girst Date: Sun, 1 Apr 2018 23:33:15 +0200 Subject: [PATCH] DECDCL flag glyph (new version) --- mines_2017.c | 2 +- schemes.h | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/mines_2017.c b/mines_2017.c index ff50d34..eb31015 100644 --- a/mines_2017.c +++ b/mines_2017.c @@ -1,5 +1,5 @@ /******************************************************************************* - minesviiper 0.3.14592 + minesviiper 0.3.145926 By Tobias Girstmair, 2015 - 2018 ./minesviiper 16x16x40 diff --git a/schemes.h b/schemes.h index 74bbd87..3bf665e 100644 --- a/schemes.h +++ b/schemes.h @@ -64,7 +64,7 @@ struct minescheme { struct minescheme symbols_mono = { .number = {" ", "1", "2", "3", "4", "5", "6", "7", "8"}, .field_closed = "░░", - .field_flagged = "⣸⡛", + .field_flagged = "▕▀", .field_question = "?", .mouse_highlight = "▓▓", .mine_normal = "*", @@ -126,7 +126,7 @@ struct minescheme symbols_doublewidth = { SGR(BOLD,"7"), SGR(BOLD,"8")}, .field_closed = "\x61", - .field_flagged = SGR(REV,SGR(BOLD,"!")), + .field_flagged = SGR(BOLD,"\eO!"), .field_question = SGR(BOLD,"?"), .mouse_highlight = SGR(BLINK,"@"), .mine_normal = SGR(BOLD,"*"), @@ -138,13 +138,16 @@ struct minescheme symbols_doublewidth = { .border = {{"\033#6\x6c","\x71","\x6b"}, {"\033#6\x78"," ","\x78"}, - {"\033#6\x74","\x71","\x75"}, + {"\033[?25l\033#6\x74","\x71","\x75"}, {"\033#6\x78"," ","\x78"}, {"\033#6\x6d","\x71","\x6a"}}, .cell_width = 1, - .flag_offset = 4, - .init_seq = "\033(0" /* enable DEC Special Graphics Character Set */ + //.init_seq = "\eP0;1;0;4;1;1{P???~^^^/???N???\e\\" //-- simple, exactly half + //.init_seq = "\eP0;1;0;4;1;1{PCK]~???/GGKNKGG\e\\" //-- original w/ smaller bottom + .init_seq = "\eP0;1;0;4;1;1{P??~^^^^/??N????\e\\" /* declare down-line loadable character set */ + "\e(0\e+P\x0f" /* set the DEC Special Graphics Character Set as G0 and our DECDCL */ + /* ("P") as G3 and select G0*/ "\033[?3l", /* switch to 80 column mode */ .reset_seq = "\033(B" /* reset to DEC Multinational Character Set */ "\033[?3h", /* switch back to 132 column mode (TODO: shouldn't be hardcoded) */ -- 2.39.3