Syntalos::SimpleTerminal
Syntalos::SimpleTerminal
A simple integrated terminal emulator. More…
#include <simpleterminal.h>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | finished() Emitted when the terminal process finishes. |
| void | activity() Emitted when the terminal receives activity. |
| void | windowClosed() Emitted when the terminal window is closed. |
Public Functions
| Name | |
|---|---|
| SimpleTerminal(QWidget * parent =nullptr) | |
| ~SimpleTerminal() override | |
| QTermWidget * | termWidget() const Get the underlying QTermWidget. |
| void | sendText(const QString & text) Send text to the terminal. |
| void | setWorkingDirectory(const QString & dir) Set the working directory for the terminal. |
| QString | workingDirectory() const Get the current working directory. |
| void | setShellProgram(const QString & shellPath) Set the shell program to use. |
| void | startShell() Start the shell program. |
| void | clear() Clear the terminal screen. |
Protected Functions
| Name | |
|---|---|
| void | closeEvent(QCloseEvent * event) override |
Detailed Description
class Syntalos::SimpleTerminal;A simple integrated terminal emulator.
This widget provides a basic terminal emulator with copy, paste, and search functionality. It can be used to run commands while still allowing user interaction.
Public Signals Documentation
signal finished
void finished()Emitted when the terminal process finishes.
signal activity
void activity()Emitted when the terminal receives activity.
signal windowClosed
void windowClosed()Emitted when the terminal window is closed.
Public Functions Documentation
function SimpleTerminal
explicit SimpleTerminal(
QWidget * parent =nullptr
)function ~SimpleTerminal
~SimpleTerminal() overridefunction termWidget
QTermWidget * termWidget() constGet the underlying QTermWidget.
Return: Pointer to the terminal widget
function sendText
void sendText(
const QString & text
)Send text to the terminal.
Parameters:
- text The text to send
function setWorkingDirectory
void setWorkingDirectory(
const QString & dir
)Set the working directory for the terminal.
Parameters:
- dir The directory path
function workingDirectory
QString workingDirectory() constGet the current working directory.
Return: The directory path
function setShellProgram
void setShellProgram(
const QString & shellPath
)Set the shell program to use.
Parameters:
- shellPath Path to the shell executable
function startShell
void startShell()Start the shell program.
function clear
void clear()Clear the terminal screen.
Protected Functions Documentation
function closeEvent
void closeEvent(
QCloseEvent * event
) overrideUpdated on 2026-02-12 at 17:03:03 +0000