summaryrefslogtreecommitdiff
path: root/Shell/LineEditor.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-19 20:01:46 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-19 20:01:46 +0200
commit253e391bfc84b2b99443e664b10cc332c22eb97a (patch)
tree79d482cad463d77b0a12cfeac6bf0e3b68221219 /Shell/LineEditor.h
parent2d4d465206d0ca2bc6f1cc70edba89b848768f98 (diff)
downloadserenity-253e391bfc84b2b99443e664b10cc332c22eb97a.zip
Shell: Implement support for terminal clearing with ^L.
Make LineEditor::get_line() responsible for printing the prompt. That way we can re-prompt after clearing the screen on ^L. This makes the Serenity Terminal feel a little bit more like home :^)
Diffstat (limited to 'Shell/LineEditor.h')
-rw-r--r--Shell/LineEditor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Shell/LineEditor.h b/Shell/LineEditor.h
index da01c435af..f7fd0c3e26 100644
--- a/Shell/LineEditor.h
+++ b/Shell/LineEditor.h
@@ -8,7 +8,7 @@ public:
LineEditor();
~LineEditor();
- String get_line();
+ String get_line(const String& prompt);
void add_to_history(const String&);
const Vector<String>& history() const { return m_history; }