MauiKit Terminal
Pty.cpp
256int Pty::start(const QString &programName, const QStringList &programArguments, const QStringList &environmentList)
void start()
void clearProgram()
void setEnv(const QString &name, const QString &value, bool overwrite=true)
void setProgram(const QString &exe, const QStringList &args=QStringList())
void close() override
void setUseUtmp(bool value)
void setPtyChannels(PtyChannels channels)
KPtyDevice * pty() const
AllChannels
int masterFd() const
bool tcGetAttr(struct ::termios *ttmode) const
const char * ttyName() const
bool setWinSize(int lines, int columns)
The Pty class is used to start the terminal process, send data to it, receive data from it and manipu...
Definition Pty.h:33
QSize windowSize() const
Returns the size of the window used by this teletype in characters.
Definition Pty.cpp:121
bool flowControlEnabled() const
Queries the terminal state and returns true if Xon/Xoff flow control is enabled.
Definition Pty.cpp:150
void receivedData(const char *buffer, int length)
Emitted when a new block of data is received from the teletype.
void setInitialWorkingDirectory(const QString &dir)
Sets the initial working directory.
Definition Pty.cpp:212
void setEraseChar(char eraseChar)
Sets the special character for erasing previous not-yet-erased character.
Definition Pty.cpp:185
QSize pixelSize() const
Returns the size of the window used by this teletype in pixels.
Definition Pty.cpp:126
void setWriteable(bool writeable)
Control whether the pty device is writeable by group members.
Definition Pty.cpp:286
void setWindowSize(int columns, int lines, int width, int height)
Sets the size of the window (in columns and lines of characters, and width and height in pixels) used...
Definition Pty.cpp:100
void sendData(const QByteArray &data)
Sends data to the process currently controlling the teletype ( whose id is returned by foregroundProc...
Definition Pty.cpp:78
int foregroundProcessGroup() const
Returns the process id of the teletype's current foreground process.
Definition Pty.cpp:309
void setUtf8Mode(bool on)
Put the pty into UTF-8 mode on systems which support it.
Definition Pty.cpp:162
const char * constData() const const
bool isEmpty() const const
qsizetype size() const const
QByteArray readAll()
void readyRead()
qint64 write(const QByteArray &data)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
std::function< void()> childProcessModifier()> childProcessModifier() const const
void setChildProcessModifier(const std::function< void()> &modifier)
void setWorkingDirectory(const QString &dir)
bool waitForStarted(int msecs)
void chop(qsizetype n)
bool endsWith(QChar c, Qt::CaseSensitivity cs) const const
QString left(qsizetype n) const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.