1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:37:35 +00:00

HackStudio: Add new Terminals

This commit is contained in:
Oriko 2020-04-06 01:03:15 +03:00 committed by Andreas Kling
parent 12c7375cdd
commit 795067e08c
3 changed files with 55 additions and 5 deletions

View file

@ -39,12 +39,16 @@ public:
void run_command(const String&);
void kill_running_command();
bool user_spawned() const { return m_user_spawned; }
TerminalWidget* terminal() { return m_terminal_widget; }
Function<void()> on_command_exit;
private:
explicit TerminalWrapper();
explicit TerminalWrapper(bool user_spawned = true);
RefPtr<ProcessStateWidget> m_process_state_widget;
RefPtr<TerminalWidget> m_terminal_widget;
pid_t m_pid { -1 };
bool m_user_spawned { true };
};