diff options
Diffstat (limited to 'gui/console.h')
-rw-r--r-- | gui/console.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gui/console.h b/gui/console.h index a3b91223a6..149a2248a5 100644 --- a/gui/console.h +++ b/gui/console.h @@ -29,7 +29,9 @@ enum { kBufferSize = 32768, kLineBufferSize = 256, - kCharWidth = 8 + kCharWidth = 8, + + kHistorySize = 20, }; class ScrollBarWidget; @@ -61,6 +63,11 @@ protected: InputCallbackProc _callbackProc; void *_callbackRefCon; + char _history[kHistorySize][kLineBufferSize]; + int _historySize; + int _historyIndex; + int _historyLine; + public: ConsoleDialog(NewGui *gui); @@ -97,6 +104,10 @@ protected: void killChar(); void killLine(); void killLastWord(); + + // History + void addToHistory(const char *str); + void historyScroll(int direction); }; #endif |