Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TEPty Class Reference

Ptys provide a pseudo terminal connection to a program. More...


Detailed Description

Ptys provide a pseudo terminal connection to a program.

Although closely related to pipes, these pseudo terminal connections have some ability, that makes it nessesary to uses them. Most importent, they know about changing screen sizes and UNIX job control.

Within the terminal emulation framework, this class represents the host side of the terminal together with the connecting serial line.

One can create many instances of this class within a program. As a side effect of using this class, a signal(2) handler is installed on SIGCHLD.

FIXME
[NOTE: much of the technical stuff below will be replaced by forkpty.]

publish the SIGCHLD signal if not related to an instance.

clearify TEPty::done vs. TEPty::~TEPty semantics. check if pty is restartable via run after done.

Pseudo terminals
Pseudo terminals are a unique feature of UNIX, and always come in form of pairs of devices (/dev/ptyXX and /dev/ttyXX), which are connected to each other by the operating system. One may think of them as two serial devices linked by a null-modem cable. Being based on devices the number of simultanous instances of this class is (globally) limited by the number of those device pairs, which is 256.

Another technic are UNIX 98 PTY's. These are supported also, and prefered over the (obsolete) predecessor.

There's a sinister ioctl(2), signal(2) and job control stuff nessesary to make everything work as it should.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:53:31 2005 for OPIE by  doxygen 1.4.2