diff options
Diffstat (limited to 'gui/console.h')
-rw-r--r-- | gui/console.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/console.h b/gui/console.h index aa485df352..d59fb9c56f 100644 --- a/gui/console.h +++ b/gui/console.h @@ -104,13 +104,16 @@ public: } protected: + inline char &buffer(int idx) { + return _buffer[idx % kBufferSize]; + } + void drawCaret(bool erase); void putcharIntern(int c); void insertIntoPrompt(const char *str); void print(const char *str); void updateScrollBar(); void scrollToCurrent(); - inline int getBufferPos() const { return _currentPos % kBufferSize; } // Line editing void specialKeys(int keycode); |