diff options
author | Neil Moore <neil@s-z.org> | 2013-08-24 03:20:38 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-08-24 03:56:01 -0400 |
commit | f8c068ad83a84cf057d4f422c23b716d86a5db47 (patch) | |
tree | 86cff845e990b496f87eee2c112c71ac6e70853e /crawl-ref/source/cio.h | |
parent | d1430c45d1c8454ff1b2807c1a96363b44deddc1 (diff) | |
download | crawl-ref-f8c068ad83a84cf057d4f422c23b716d86a5db47.tar.gz crawl-ref-f8c068ad83a84cf057d4f422c23b716d86a5db47.zip |
Allow specifying pre-filled text for {msgwin,cancelable}_get_line.
Also remove an unused parameter.
Diffstat (limited to 'crawl-ref/source/cio.h')
-rw-r--r-- | crawl-ref/source/cio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/cio.h b/crawl-ref/source/cio.h index 4a6acf6f53..5cc12075ab 100644 --- a/crawl-ref/source/cio.h +++ b/crawl-ref/source/cio.h @@ -56,7 +56,8 @@ void nowrap_eol_cprintf(PRINTF(0, )); int cancelable_get_line(char *buf, int len, input_history *mh = NULL, - int (*keyproc)(int &c) = NULL); + int (*keyproc)(int &c) = NULL, + const string &fill = ""); // Do not use this templated function directly. Use the macro below instead. template<int> static int cancelable_get_line_autohist_temp(char *buf, int len) @@ -232,6 +233,7 @@ public: typedef int (*keyproc)(int &key); int read_line(bool clear_previous = true); + int read_line(const string &prefill); string get_text() const; |