diff options
author | Pekka Lampila <pekka.lampila@iki.fi> | 2013-12-03 07:31:21 +0200 |
---|---|---|
committer | Pekka Lampila <pekka.lampila@iki.fi> | 2013-12-03 07:31:21 +0200 |
commit | df150e23386a00d010c28f53958e6d30f86232f9 (patch) | |
tree | 004b7809d1007cc9a31c476d935cb0357338e0a5 /crawl-ref/source/cio.cc | |
parent | a637296d9d8e717f08a3f291d58ad5ede9e2325b (diff) | |
download | crawl-ref-df150e23386a00d010c28f53958e6d30f86232f9.tar.gz crawl-ref-df150e23386a00d010c28f53958e6d30f86232f9.zip |
Special handling for WebTiles travel depth prompt
Allows using <, >, $ etc.
Dead keys aren't handled properly (at least not in Firefox on Linux).
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r-- | crawl-ref/source/cio.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc index 8531864277..174dc28dd4 100644 --- a/crawl-ref/source/cio.cc +++ b/crawl-ref/source/cio.cc @@ -163,7 +163,8 @@ static void wrapcprintf(int wrapcol, const char *s, ...) } int cancellable_get_line(char *buf, int len, input_history *mh, - int (*keyproc)(int &ch), const string &fill) + int (*keyproc)(int &ch), const string &fill, + const string &tag) { flush_prev_message(); @@ -171,6 +172,9 @@ int cancellable_get_line(char *buf, int len, input_history *mh, line_reader reader(buf, len, get_number_of_cols()); reader.set_input_history(mh); reader.set_keyproc(keyproc); +#ifdef USE_TILE_WEB + reader.set_tag(tag); +#endif return reader.read_line(fill); } |