1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

HackStudio: Clear embedded terminal upon opening a different project

This commit is contained in:
Lennon Donaghy 2021-08-01 21:40:05 +01:00 committed by Andreas Kling
parent 6076deae1d
commit 971a5a70d1
3 changed files with 7 additions and 0 deletions

View file

@ -152,6 +152,11 @@ void TerminalWrapper::kill_running_command()
[[maybe_unused]] auto rc = killpg(m_pid, SIGTERM);
}
void TerminalWrapper::clear_including_history()
{
m_terminal_widget->clear_including_history();
}
TerminalWrapper::TerminalWrapper(bool user_spawned)
: m_user_spawned(user_spawned)
{