ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libptytty/src/libptytty.h
Revision: 1.2
Committed: Sat Jan 21 22:36:46 2006 UTC (20 years, 7 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.1: +0 -2 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #ifndef LIBPTY_H_ /* public libpty header file */
2     #define LIBPTY_H_
3    
4     struct ptytty {
5     int pty; // pty file descriptor; connected to rxvt
6     int tty; // tty file descriptor; connected to child
7    
8     virtual ~ptytty ()
9     {
10     }
11    
12     virtual bool get () = 0;
13     virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0;
14    
15     void close_tty ();
16     bool make_controlling_tty ();
17     void set_utf8_mode (bool on);
18    
19     protected:
20     ptytty ()
21     : pty(-1), tty(-1)
22     {
23     }
24     };
25    
26     ptytty *ptytty_new (); // create a new pty object
27     void ptytty_server (); // start the ptytty server process
28    
29     #endif
30