mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-10 02:26:29 +00:00
LibLine: Handle interrupts/window size changes internally
This commit is contained in:
committed by
Andreas Kling
parent
238e87de4e
commit
30554c969c
@@ -93,12 +93,10 @@ int main(int argc, char** argv)
|
||||
Core::EventLoop loop;
|
||||
|
||||
Core::EventLoop::register_signal(SIGINT, [](int) {
|
||||
editor->interrupted();
|
||||
s_shell->kill_job(s_shell->current_job(), SIGINT);
|
||||
});
|
||||
|
||||
Core::EventLoop::register_signal(SIGWINCH, [](int) {
|
||||
editor->resized();
|
||||
s_shell->kill_job(s_shell->current_job(), SIGWINCH);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user