mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +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
|
@ -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