mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
HackStudio: Add TerminalWrapper::on_command_exit
This commit is contained in:
parent
d29a078ab3
commit
cd11a8597a
Notes:
sideshowbarker
2024-07-19 11:13:43 +09:00
Author: https://github.com/bugaevc
Commit: cd11a8597a
Pull-request: https://github.com/SerenityOS/serenity/pull/779
2 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,9 @@ void TerminalWrapper::run_command(const String& command)
|
|||
}
|
||||
m_process_state_widget->set_tty_fd(-1);
|
||||
m_pid = -1;
|
||||
|
||||
if (on_command_exit)
|
||||
on_command_exit();
|
||||
};
|
||||
|
||||
m_pid = fork();
|
||||
|
|
|
@ -12,6 +12,8 @@ public:
|
|||
|
||||
void run_command(const String&);
|
||||
|
||||
Function<void()> on_command_exit;
|
||||
|
||||
private:
|
||||
explicit TerminalWrapper(GWidget* parent);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue