mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00

Pressing Ctrl+B now invokes "make" in the project directory and routes the output from the make command to the little terminal widget.
19 lines
361 B
C++
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 };
|
|
};
|