ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/ptytty.h
Revision: 1.3
Committed: Mon Jan 3 12:48:57 2005 UTC (19 years, 5 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-5_5, rel-5_4, rel-5_7, rel-5_1, rel-5_0, rel-5_3, rel-5_2, rel-5_9, rel-5_8, rel-6_0, rel-6_1, rel-4_8, rel-4_9
Changes since 1.2: +1 -0 lines
Log Message:
*** empty log message ***

File Contents

# 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 root 1.3 void set_utf8_mode (bool on);
28 root 1.1 };
29    
30     #endif
31