KPty Class Reference
Provides a high level representation of a pseudo tty pair, including utmp support. More...
#include <kpty.h>
| Public Member Functions | |
| 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) | 
| const char * | ttyName () const | 
| int | masterFd () const | 
| int | slaveFd () const | 
Detailed Description
Provides a high level representation of a pseudo tty pair, including utmp support....
- Since:
- 3.2
Definition at line 35 of file kpty.h.
Constructor & Destructor Documentation
| 
 | 
| Constructor. 
 | 
| 
 | 
| Destructor:. If the pty is still open, it will be closed. Note, however, that an utmp registration is not undone. Definition at line 186 of file kpty.cpp. References close(). | 
Member Function Documentation
| 
 | 
| Create a pty master/slave pair. 
 
 Definition at line 192 of file kpty.cpp. References endl(), and QCString::sprintf(). | 
| 
 | 
| Close the pty master/slave pair. 
 Definition at line 336 of file kpty.cpp. Referenced by ~KPty(). | 
| 
 | 
| Creates a new session and process group and makes this pty the controlling tty. 
 | 
| 
 | ||||||||||||
| Creates an utmp entry for the tty. This function must be called after calling 
 
 | 
| 
 | 
| Removes the utmp entry for this tty. 
 | 
| 
 | ||||||||||||
| Change the logical (screen) size of the pty. The default is 24 lines by 80 columns. 
 
 | 
| 
 | 
| Set whether the pty should honor Xon/Xoff flow control. Xon/Xoff flow control is off by default. 
 
 | 
| 
 | 
| 
 
 | 
| 
 | 
| 
 
 | 
| 
 | 
| 
 
 | 
The documentation for this class was generated from the following files:

