diff options
author | Kris Moore <kris@pcbsd.org> | 2016-03-09 17:33:20 -0500 |
---|---|---|
committer | Kris Moore <kris@pcbsd.org> | 2016-03-09 17:33:20 -0500 |
commit | 8180773e768888240044fcc192bd7a92294f351b (patch) | |
tree | db9348ba27f6172cdaae8cfc8efa6203ebb57fda /desktop-utilities/lumina-terminal/TtyProcess.h | |
parent | Oops, forgot to add the new TtyProcess files in the last commit. (diff) | |
download | lumina-8180773e768888240044fcc192bd7a92294f351b.tar.gz lumina-8180773e768888240044fcc192bd7a92294f351b.tar.bz2 lumina-8180773e768888240044fcc192bd7a92294f351b.zip |
Convert TTYprocess to a QFile, add some testing for execvp (which makes
the shell start, but then terminal hangs)
Diffstat (limited to 'desktop-utilities/lumina-terminal/TtyProcess.h')
-rw-r--r-- | desktop-utilities/lumina-terminal/TtyProcess.h | 18 |
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 |