1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 14:15:08 +00:00

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
parent 48d2545572
commit 5325d6871d
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();