示例#1
0
文件: kpty.cpp 项目: vasi/kdelibs
bool KPty::tcGetAttr(struct ::termios *ttmode) const
{
    Q_D(const KPty);

#ifdef Q_OS_SOLARIS
    if (_tcgetattr(d->slaveFd, ttmode) == 0) return true;
#endif
    return _tcgetattr(d->masterFd, ttmode) == 0;
}
示例#2
0
bool KPty::tcGetAttr(struct ::termios * ttmode) const
{
    Q_D(const KPty);

    return _tcgetattr(d->masterFd, ttmode) == 0;
}