mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +00:00
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
This commit is contained in:
parent
1e30ef239b
commit
bc9013f706
7 changed files with 87 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue