aboutsummaryrefslogtreecommitdiff
path: root/gui/console.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/console.h')
-rw-r--r--gui/console.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/gui/console.h b/gui/console.h
index 01d0705661..289bdb8441 100644
--- a/gui/console.h
+++ b/gui/console.h
@@ -44,12 +44,11 @@ protected:
int _lineWidth;
int _linesPerPage;
- int _currentColumn;
- int _currentLine;
+ int _currentPos;
int _scrollLine;
-// char _lineBuffer[kLineBufferSize];
- int _promptLine;
+ int _promptStartPos;
+ int _promptEndPos;
bool _caretVisible;
uint32 _caretTime;
@@ -59,9 +58,6 @@ protected:
public:
ConsoleDialog(NewGui *gui);
-// void open();
-// void close();
-
void drawDialog();
void handleTickle();
@@ -79,6 +75,12 @@ protected:
void print(const char *str);
void nextLine();
void updateScrollBar();
+ inline int getBufferPos() const { return _currentPos % kBufferSize; }
+
+ // Line editing
+ void specialKeys(int keycode);
+ void killLine();
+ void killLastWord();
};
#endif