mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibLine: Handle interrupts/window size changes internally
This commit is contained in:
parent
238e87de4e
commit
30554c969c
Notes:
sideshowbarker
2024-07-19 03:21:24 +09:00
Author: https://github.com/alimpfard
Commit: 30554c969c
Pull-request: https://github.com/SerenityOS/serenity/pull/3230
Reviewed-by: https://github.com/awesomekling
4 changed files with 9 additions and 10 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue