Syntalos::SimpleTerminal

Syntalos::SimpleTerminal

Syntalos::SimpleTerminal

A simple integrated terminal emulator. More…

#include <simpleterminal.h>

Inherits from QWidget

Public Signals

Name
voidfinished()
Emitted when the terminal process finishes.
voidactivity()
Emitted when the terminal receives activity.
voidwindowClosed()
Emitted when the terminal window is closed.

Public Functions

Name
SimpleTerminal(QWidget * parent =nullptr)
~SimpleTerminal() override
QTermWidget *termWidget() const
Get the underlying QTermWidget.
voidsendText(const QString & text)
Send text to the terminal.
voidsetWorkingDirectory(const QString & dir)
Set the working directory for the terminal.
QStringworkingDirectory() const
Get the current working directory.
voidsetShellProgram(const QString & shellPath)
Set the shell program to use.
voidstartShell()
Start the shell program.
voidclear()
Clear the terminal screen.

Protected Functions

Name
voidcloseEvent(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() override

function termWidget

QTermWidget * termWidget() const

Get 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() const

Get 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
) override

Updated on 2026-02-12 at 17:03:03 +0000