terminalgui
0.1.0
Widgets for your terminal, powered by Qt! Create textual GUI (TUI) in your console easily.
|
63 void setSize(
const QSize &newSize);
93 void registerSignalHandler();
94 void enableMouseTracking();
95 void disableMouseTracking();
98 static const int standardInputIndex = 0;
99 const QSize _defaultSize = QSize(80, 24);
100 bool _isMouseReporting =
false;
Cross-platform representation of terminal window.
Definition: tgterminal.h:20
static Terminal * globalTerminal()
Returns Singleton Terminal instance.
Definition: tgterminal.cpp:20
Simple RAII class - sets proper echo mode in terminal for the duration of application run.
Definition: tgterminal.h:110
static int keyboardBufferSize()
Returns number of characters available in keyboard buffer.
Definition: tgterminal_linux.cpp:49
void sizeChanged(const QSize &size) const
Emitted when terminal window changes size to size.
All Terminal GUI classes (both core and widgets) are defined within the Tg namespace.
Definition: tgcolor.h:6
static QPoint cursorPosition()
Returns current position of keyboard cursor.
Definition: tgterminal_linux.cpp:42
QSize terminalWindowSize() const
Reads the underlying terminal window size and returns it.
Definition: tgterminal_linux.cpp:35
Terminal(QObject *parent=nullptr)
Constructs a new Terminal object as a child of parent object.
Definition: tgterminal.cpp:5
~RawTerminalLocker()
Enables echo mode in terminal.
Definition: tgterminal_linux.cpp:114
RawTerminalLocker()
Disables echo mode in terminal.
Definition: tgterminal_linux.cpp:100
~Terminal()
Makes terminal go boom!
Definition: tgterminal.cpp:13
void setSize(const QSize &newSize)
Resizes Terminal instance to newSize.
Definition: tgterminal.cpp:30
static int getChar()
Retrieves a single character from the keyboard buffer.
Definition: tgterminal_linux.cpp:56
QSize size
Size of the terminal window.
Definition: tgterminal.h:26