summaryrefslogtreecommitdiff
path: root/Shell/LineEditor.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-07 05:29:07 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-07 05:29:07 +0200
commit67108f872f59f28a3e4c5c2b5c0fc204674e1684 (patch)
tree9e65600774e8fe2a667c875602fab6b5c053834a /Shell/LineEditor.h
parentb04f08ba483c800ea28afba3bc1d33a2542bbbbb (diff)
downloadserenity-67108f872f59f28a3e4c5c2b5c0fc204674e1684.zip
Shell: Make ^W and ^U work when cursor is not at the end of the line.
Diffstat (limited to 'Shell/LineEditor.h')
-rw-r--r--Shell/LineEditor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Shell/LineEditor.h b/Shell/LineEditor.h
index 60d0e643b0..da01c435af 100644
--- a/Shell/LineEditor.h
+++ b/Shell/LineEditor.h
@@ -16,6 +16,9 @@ public:
private:
void clear_line();
void append(const String&);
+ void vt_save_cursor();
+ void vt_restore_cursor();
+ void vt_clear_to_end_of_line();
Vector<char, 1024> m_buffer;
int m_cursor { 0 };