diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-05-25 16:57:07 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-25 21:36:51 +0200 |
commit | bc9013f7064fec7d0b6fe1d8513a62761978acad (patch) | |
tree | 82dca471709d6d9a5521963a6867104a876680d3 /Shell/Shell.h | |
parent | 1e30ef239ba3a6a1108a11d25dc3024f4bdda029 (diff) | |
download | serenity-bc9013f7064fec7d0b6fe1d8513a62761978acad.zip |
LibLine: Change get_line to return a Result<String, Error>
This fixes a bunch of FIXME's in LibLine.
Also handles the case where read() would read zero bytes in vt_dsr() and
effectively block forever by erroring out.
Fixes #2370
Diffstat (limited to 'Shell/Shell.h')
-rw-r--r-- | Shell/Shell.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Shell/Shell.h b/Shell/Shell.h index cbd92e02c7..63be56c69a 100644 --- a/Shell/Shell.h +++ b/Shell/Shell.h @@ -123,7 +123,7 @@ public: bool should_read_more() const { return m_should_continue != ContinuationRequest::Nothing; } void finish_command() { m_should_break_current_command = true; } - void read_single_line(); + bool read_single_line(); struct termios termios; struct termios default_termios; |