diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-26 07:31:00 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-26 07:31:00 +0000 |
commit | aa300c86ccbb1cffa03ee8f6e0dca0e6ef48cef6 (patch) | |
tree | 026a78d32326ca88f029ddc0949b799e39317f3c /crawl-ref/source/cio.h | |
parent | 32a6373c7a8072bfcb4567417f82f700084b6ab8 (diff) | |
download | crawl-ref-aa300c86ccbb1cffa03ee8f6e0dca0e6ef48cef6.tar.gz crawl-ref-aa300c86ccbb1cffa03ee8f6e0dca0e6ef48cef6.zip |
Added help for stash-search (dpeg).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3338 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cio.h')
-rw-r--r-- | crawl-ref/source/cio.h | 5 |
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; |