aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities/lumina-terminal/TtyProcess.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-utilities/lumina-terminal/TtyProcess.h')
-rw-r--r--desktop-utilities/lumina-terminal/TtyProcess.h18
1 files changed, 14 insertions, 4 deletions
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 <QSerialPort>
#include <QDebug>
+#include <QFile>
-class TTYProcess : public QSerialPort{
+//Standard C library functions for PTY access/setup
+#include <stdlib.h>
+#include <fcntl.h>
+#include <termios.h>
+#include <unistd.h>
+#include <sys/ioctl.h>
+#include <sys/types.h>
+#include <signal.h>
+
+
+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
bgstack15