| Revision: | 1.2 |
| Committed: | Sun Aug 15 02:35:27 2004 UTC (22 years, 1 month ago) by root |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | rel-4_4, rel-4_6, rel-4_7, rel-4_2, rel-4_3, rel-3_7, rel-3_8, rel-4_0, rel-4_1 |
| Changes since 1.1: | +2 -0 lines |
| Log Message: | *** empty log message *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | root | 1.1 | #ifndef PTYTTY_H |
| 2 | #define PTYTTY_H | ||
| 3 | |||
| 4 | #include "rxvt.h" | ||
| 5 | |||
| 6 | enum rxvt_privaction { IGNORE = 'i', SAVE = 's', RESTORE = 'r' }; | ||
| 7 | |||
| 8 | struct rxvt_ptytty { | ||
| 9 | #ifndef RESET_TTY_TO_COMMON_DEFAULTS | ||
| 10 | struct stat savestat; /* original status of our tty */ | ||
| 11 | #endif | ||
| 12 | void privileges (rxvt_privaction action); | ||
| 13 | public: | ||
| 14 | int pty; // pty file descriptor; connected to rxvt | ||
| 15 | int tty; // tty file descriptor; connected to child | ||
| 16 | char *name; | ||
| 17 | |||
| 18 | rxvt_ptytty (); | ||
| 19 | ~rxvt_ptytty (); | ||
| 20 | |||
| 21 | bool get (); | ||
| 22 | void put (); | ||
| 23 | |||
| 24 | root | 1.2 | void close_tty (); |
| 25 | |||
| 26 | root | 1.1 | bool make_controlling_tty (); |
| 27 | }; | ||
| 28 | |||
| 29 | #endif | ||
| 30 |