mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
LibVT: Put TerminalWidget in the VT namespace :^)
This commit is contained in:
parent
340180ba05
commit
2c1f71055f
5 changed files with 24 additions and 17 deletions
|
@ -178,7 +178,7 @@ TerminalWrapper::TerminalWrapper(bool 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_terminal_widget = add<VT::TerminalWidget>(-1, false, config);
|
||||
|
||||
if (user_spawned)
|
||||
run_command("Shell");
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/Widget.h>
|
||||
|
||||
class TerminalWidget;
|
||||
#include <LibVT/TerminalWidget.h>
|
||||
|
||||
namespace HackStudio {
|
||||
|
||||
|
@ -41,14 +40,14 @@ public:
|
|||
void kill_running_command();
|
||||
|
||||
bool user_spawned() const { return m_user_spawned; }
|
||||
TerminalWidget& terminal() { return *m_terminal_widget; }
|
||||
VT::TerminalWidget& terminal() { return *m_terminal_widget; }
|
||||
|
||||
Function<void()> on_command_exit;
|
||||
|
||||
private:
|
||||
explicit TerminalWrapper(bool user_spawned = true);
|
||||
|
||||
RefPtr<TerminalWidget> m_terminal_widget;
|
||||
RefPtr<VT::TerminalWidget> m_terminal_widget;
|
||||
pid_t m_pid { -1 };
|
||||
bool m_user_spawned { true };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue