KPty Class Reference
#include <kpty.h>
Public Member Functions | |
KPty () | |
~KPty () | |
bool | open () |
bool | setPty (int pty_master) |
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 |
Protected Member Functions | |
bool | _attachPty (int pty_master) |
Detailed Description
Provides a high level representation of a pseudo tty pair, including utmp support.
...
- Since
- 3.2
Constructor & Destructor Documentation
◆ KPty()
◆ ~KPty()
KPty::~KPty | ( | ) |
Member Function Documentation
◆ close()
◆ login()
void KPty::login | ( | const char * | user = 0 , |
const char * | remotehost = 0 |
||
) |
Creates an utmp entry for the tty.
This function must be called after calling setCTty and making this pty the stdin.
- Parameters
-
user the user to be logged on remotehost the host from which the login is coming. This is not the local host. For remote logins it should be the hostname of the client. For local logins from inside an X session it should be the name of the X display. Otherwise it should be empty.
◆ logout()
◆ masterFd()
int KPty::masterFd | ( | ) | const |
◆ open()
bool KPty::open | ( | ) |
◆ setCTty()
void KPty::setCTty | ( | ) |
◆ setPty()
bool KPty::setPty | ( | int | pty_master | ) |
◆ setUtf8Mode()
void KPty::setUtf8Mode | ( | bool | useUtf8 | ) |
◆ setWinSize()
void KPty::setWinSize | ( | int | lines, |
int | columns | ||
) |
◆ setXonXoff()
void KPty::setXonXoff | ( | bool | useXonXoff | ) |
◆ slaveFd()
int KPty::slaveFd | ( | ) | const |
◆ ttyName()
const char * KPty::ttyName | ( | ) | const |
The documentation for this class was generated from the following files: