mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
Also put our child process into a new process group in order to be able to kill it along with its own children.
24 lines
514 B
C++
24 lines
514 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GWidget.h>
|
|
|
|
class ProcessStateWidget;
|
|
class TerminalWidget;
|
|
|
|
class TerminalWrapper final : public GWidget {
|
|
C_OBJECT(TerminalWrapper)
|
|
public:
|
|
virtual ~TerminalWrapper() override;
|
|
|
|
void run_command(const String&);
|
|
void kill_running_command();
|
|
|
|
Function<void()> on_command_exit;
|
|
|
|
private:
|
|
explicit TerminalWrapper(GWidget* parent);
|
|
|
|
RefPtr<ProcessStateWidget> m_process_state_widget;
|
|
RefPtr<TerminalWidget> m_terminal_widget;
|
|
pid_t m_pid { -1 };
|
|
};
|