I expect this to work in 99% cases, and if it fails, there's probably no
regression since I don't know of a terminal that can be easily switched to
CP437 but doesn't support "\e%G".
It would be better to check if the terminal uses Unicode and convert
everything to ASCII, and I'll do that soon, but this version might be
good enough for now.
(Adam Borowski <kilobyte@angband.pl>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@600
db0b04b0-f4d1-0310-9a6d-
de3e77497b0e
break;
case 12: case 18: /* ^L, ^R */
+ write(1, "\033%G", 3);
clear ();
break;
clear ();
refresh ();
endwin ();
+ write(1, "\033%G", 3);
#ifdef USE_SHMEM
signals_block();
if (games[idx]->is_in_shm) {
use_default_colors();
init_pair(1, -1, -1);
init_pair(2, COLOR_RED, -1);
+ write(1, "\033%G", 3);
#endif
clear();
refresh();
while (1) {
if (doclear) {
doclear = 0;
+ write(1, "\033%G", 3);
clear();
}
drawbanner(&ban, 1, 0);