Shell: Make <return> go to a new line when the command is incomplete

"incomplete" meaning that it has a syntax error that can be recovered
from by continuing the input.
This commit is contained in:
AnotherTest 2020-12-01 12:55:14 +03:30 committed by Andreas Kling
commit 5325d6871d
Notes: sideshowbarker 2024-07-19 00:59:03 +09:00
6 changed files with 61 additions and 50 deletions

View file

@ -61,6 +61,7 @@ int main(int argc, char** argv)
});
editor = Line::Editor::construct();
editor->initialize();
auto shell = Shell::Shell::construct(*editor);
s_shell = shell.ptr();
@ -81,7 +82,6 @@ int main(int argc, char** argv)
}
#endif
editor->initialize();
shell->termios = editor->termios();
shell->default_termios = editor->default_termios();