Merge pull request #39 from F1ash/master
add method for get pty slave fd;
This commit is contained in:
@@ -79,6 +79,7 @@ Session::Session(QObject* parent) :
|
||||
|
||||
//create teletype for I/O with shell process
|
||||
_shellProcess = new Pty();
|
||||
ptySlaveFd = _shellProcess->pty()->slaveFd();
|
||||
|
||||
//create emulation backend
|
||||
_emulation = new Vt102Emulation();
|
||||
@@ -939,6 +940,10 @@ int Session::processId() const
|
||||
{
|
||||
return _shellProcess->pid();
|
||||
}
|
||||
int Session::getPtySlaveFd() const
|
||||
{
|
||||
return ptySlaveFd;
|
||||
}
|
||||
|
||||
SessionGroup::SessionGroup()
|
||||
: _masterMode(0)
|
||||
|
||||
Reference in New Issue
Block a user