summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/state.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-26 02:44:06 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-26 02:44:06 +0200
commit8083632f65832778889f5f5ec1a18f06f8caac40 (patch)
treebe653b81803cf73acfe41a56e58e58cc3628fea7 /crawl-ref/source/state.h
parent1c07180018c8183adbfa4618d59d55b451a2e35e (diff)
downloadcrawl-ref-8083632f65832778889f5f5ec1a18f06f8caac40.tar.gz
crawl-ref-8083632f65832778889f5f5ec1a18f06f8caac40.zip
Always use Unicode values for glyphs. Always use ncursesw on Unix console.
CSET_IBM and CSET_DEC are now merely presets and don't change the I/O encoding. Doing I/O using any encoding other than the one configured using LANG/LC_* is just wrong and no well-behaving program should do that. This does require changes on CAO/CDO, but they would fix problems with ttyrec and spectating as well. To fix: ncursesw replaces unrepresentable characters with spaces, we'll have to replace them by hand.
Diffstat (limited to 'crawl-ref/source/state.h')
-rw-r--r--crawl-ref/source/state.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/crawl-ref/source/state.h b/crawl-ref/source/state.h
index 406b398978..da249c08f4 100644
--- a/crawl-ref/source/state.h
+++ b/crawl-ref/source/state.h
@@ -62,14 +62,10 @@ struct game_state
std::vector<std::string> tests_selected; // Tests to be run.
std::vector<std::string> script_args; // Arguments to scripts.
- bool unicode_ok; // Is unicode support available?
-
bool show_more_prompt; // Set to false to disable --more-- prompts.
std::string sprint_map; // Sprint map set on command line, if any.
- std::string (*glyph2strfn)(unsigned glyph);
- int (*multibyte_strlen)(const std::string &s);
void (*terminal_resize_handler)();
void (*terminal_resize_check)();