mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:08:13 +00:00
LibLine: Add a hook to run when an interrupt is handled
We do not want to clog up signal handlers by putting possibly complex logic inside them, so allow the editor to handle that.
This commit is contained in:
parent
2c45076e68
commit
98d25324fd
2 changed files with 5 additions and 0 deletions
|
@ -134,6 +134,7 @@ public:
|
|||
|
||||
Function<Vector<CompletionSuggestion>(const String&)> on_tab_complete_first_token;
|
||||
Function<Vector<CompletionSuggestion>(const String&)> on_tab_complete_other_token;
|
||||
Function<void()> on_interrupt_handled;
|
||||
Function<void(Editor&)> on_display_refresh;
|
||||
|
||||
// FIXME: we will have to kindly ask our instantiators to set our signal handlers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue