KDESu
8#ifndef KDESUPTYPROCESS_H
9#define KDESUPTYPROCESS_H
19#include <kdesu/kdesu_export.h>
25class PtyProcessPrivate;
35class KDESU_EXPORT PtyProcess
81 void writeLine(
const QByteArray &line,
bool addNewline =
true);
88 void unreadLine(
const QByteArray &line,
bool addNewline =
true);
111 int enableLocalEcho(
bool enable =
true);
116 void setTerminal(
bool terminal);
122 void setErase(
bool erase);
155 static int waitMS(
int fd,
int ms);
162 static bool checkPid(pid_t pid);
171 static int checkPidExited(pid_t pid);
174 KDESU_NO_EXPORT
explicit PtyProcess(PtyProcessPrivate &dd);
177 virtual void virtual_hook(
int id,
void *data);
190 KDESU_NO_EXPORT
int init();
191 KDESU_NO_EXPORT
int setupTTY();
194 std::unique_ptr<PtyProcessPrivate>
const d_ptr;
197 Q_DECLARE_PRIVATE(PtyProcess)
Synchronous communication with tty programs.
QByteArray m_command
Unused.
int m_pid
PID of child process.
checkPidStatus
Error return values for checkPidExited()
@ NotExited
Child hasn't exited.
@ Killed
Child terminated by signal.
QByteArray m_exitString
String to scan for in output that indicates child has exited.
bool m_terminal
Indicates running in a terminal, causes additional newlines to be printed after output.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:38 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.