1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00
serenity/DevTools/HackStudio/TerminalWrapper.h
Andreas Kling 654ffdef91 HackStudio: Add a simple "Build" action
Pressing Ctrl+B now invokes "make" in the project directory and routes
the output from the make command to the little terminal widget.
2019-10-22 22:15:43 +02:00

19 lines
361 B
C++

#pragma once
#include <LibGUI/GWidget.h>
class TerminalWidget;
class TerminalWrapper final : public GWidget {
C_OBJECT(TerminalWrapper)
public:
virtual ~TerminalWrapper() override;
void run_command(const String&);
private:
explicit TerminalWrapper(GWidget* parent);
RefPtr<TerminalWidget> m_terminal_widget;
pid_t m_pid { -1 };
};