summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/cio.h')
-rw-r--r--crawl-ref/source/cio.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/cio.h b/crawl-ref/source/cio.h
index 75e9ca048d..f0a0c2afa3 100644
--- a/crawl-ref/source/cio.h
+++ b/crawl-ref/source/cio.h
@@ -219,6 +219,7 @@ class line_reader
public:
line_reader(char *buffer, size_t bufsz,
int wrap_col = get_number_of_cols());
+ virtual ~line_reader();
typedef int (*keyproc)(int &key);
@@ -231,14 +232,14 @@ public:
protected:
void cursorto(int newcpos);
- int process_key(int ch);
+ virtual int process_key(int ch);
void backspace();
void killword();
void kill_to_begin();
bool is_wordchar(int c);
-private:
+protected:
char *buffer;
size_t bufsz;
input_history *history;