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/TerminalWidget.cpp | |
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/TerminalWidget.cpp')
-rw-r--r-- | desktop-utilities/lumina-terminal/TerminalWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-utilities/lumina-terminal/TerminalWidget.cpp b/desktop-utilities/lumina-terminal/TerminalWidget.cpp index 326f1703..d733b7d3 100644 --- a/desktop-utilities/lumina-terminal/TerminalWidget.cpp +++ b/desktop-utilities/lumina-terminal/TerminalWidget.cpp @@ -19,7 +19,7 @@ TerminalWidget::TerminalWidget(QWidget *parent, QString dir) : QTextEdit(parent) //Create/open the TTY port PROC = new TTYProcess(this); qDebug() << "Open new TTY"; - bool ok = PROC->start( QProcessEnvironment::systemEnvironment().value("SHELL","/bin/sh") ); + bool ok = PROC->startTTY( QProcessEnvironment::systemEnvironment().value("SHELL","/bin/sh") ); qDebug() << " - opened:" << ok; this->setEnabled(PROC->isOpen()); @@ -111,4 +111,4 @@ void TerminalWidget::mouseDoubleClickEvent(QMouseEvent *ev){ void TerminalWidget::contextMenuEvent(QContextMenuEvent *ev){ Q_UNUSED(ev); -}
\ No newline at end of file +} |