From 238e87de4e0b805caad470c70acef989e493b810 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Thu, 20 Aug 2020 20:04:55 +0430 Subject: LibLine: Handle Ctrl-C and Ctrl-D in a way similar to other line editors Makes C-c print "^C" and continue prompting on a new line. Also fixes a problem where an interrupted get_line() would need more read()'s than required to update the display. --- Shell/main.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Shell') diff --git a/Shell/main.cpp b/Shell/main.cpp index f8671a9fb8..a3fdf5e6a2 100644 --- a/Shell/main.cpp +++ b/Shell/main.cpp @@ -238,10 +238,6 @@ int main(int argc, char** argv) return 1; } - editor->on_interrupt_handled = [&] { - editor->finish(); - }; - shell->add_child(*editor); Core::EventLoop::current().post_event(*shell, make(Shell::ShellEventType::ReadLine)); -- cgit v1.2.3