mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00
HackStudio: Add new Terminals
This commit is contained in:
parent
12c7375cdd
commit
795067e08c
3 changed files with 55 additions and 5 deletions
|
@ -167,13 +167,17 @@ void TerminalWrapper::kill_running_command()
|
|||
(void)killpg(m_pid, SIGTERM);
|
||||
}
|
||||
|
||||
TerminalWrapper::TerminalWrapper()
|
||||
TerminalWrapper::TerminalWrapper(bool user_spawned)
|
||||
: m_user_spawned(user_spawned)
|
||||
{
|
||||
set_layout<GUI::VerticalBoxLayout>();
|
||||
|
||||
RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("Terminal");
|
||||
m_terminal_widget = add<TerminalWidget>(-1, false, config);
|
||||
m_process_state_widget = add<ProcessStateWidget>();
|
||||
|
||||
if (user_spawned)
|
||||
run_command("Shell");
|
||||
}
|
||||
|
||||
TerminalWrapper::~TerminalWrapper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue