From 8180773e768888240044fcc192bd7a92294f351b Mon Sep 17 00:00:00 2001 From: Kris Moore Date: Wed, 9 Mar 2016 17:33:20 -0500 Subject: Convert TTYprocess to a QFile, add some testing for execvp (which makes the shell start, but then terminal hangs) --- desktop-utilities/lumina-terminal/TtyProcess.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'desktop-utilities/lumina-terminal/TtyProcess.h') diff --git a/desktop-utilities/lumina-terminal/TtyProcess.h b/desktop-utilities/lumina-terminal/TtyProcess.h index c764b5ae..76b82d1f 100644 --- a/desktop-utilities/lumina-terminal/TtyProcess.h +++ b/desktop-utilities/lumina-terminal/TtyProcess.h @@ -12,16 +12,26 @@ #ifndef _LUMINA_DESKTOP_UTILITIES_TERMINAL_TTY_PROCESS_WIDGET_H #define _LUMINA_DESKTOP_UTILITIES_TERMINAL_TTY_PROCESS_WIDGET_H -#include #include +#include -class TTYProcess : public QSerialPort{ +//Standard C library functions for PTY access/setup +#include +#include +#include +#include +#include +#include +#include + + +class TTYProcess : public QFile{ Q_OBJECT public: TTYProcess(QObject *parent = 0); ~TTYProcess(); - bool start(QString prog, QStringList args = QStringList()); + bool startTTY(QString prog, QStringList args = QStringList()); private: pid_t childProc; @@ -40,4 +50,4 @@ private: }; -#endif \ No newline at end of file +#endif -- cgit