kpty.h
/* This file is part of the KDE libraries
Copyright (C) 1997-2002 The Konsole Developers
Copyright (C) 2002 Waldo Bastian <bastian@kde.org>
Copyright (C) 2002-2003 Oswald Buddenhagen <ossi@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __kpty_h__
#define __kpty_h__
#include <qglobal.h>
#include <kdelibs_export.h>
#ifdef Q_OS_UNIX
struct KPtyPrivate;
class KDECORE_EXPORT KPty {
public:
KPty();
~KPty();
bool open();
void close();
void setCTty();
void login(const char *user = 0, const char *remotehost = 0);
void logout();
void setWinSize(int lines, int columns);
void setXonXoff(bool useXonXoff);
void setUtf8Mode(bool useUtf8);
const char *ttyName() const;
int masterFd() const;
int slaveFd() const;
private:
bool chownpty(bool grant);
KPtyPrivate *d;
};
#endif //Q_OS_UNIX
#endif
KPty
Provides a high level representation of a pseudo tty pair, including utmp support.
Definition: kpty.h:40

KDE Home | KDE Accessibility Home | Description of Access Keys