1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +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

@ -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()