… | |
… | |
175 | |
175 | |
176 | struct rxvt_ptytty { |
176 | struct rxvt_ptytty { |
177 | int pty; // pty file descriptor; connected to rxvt |
177 | int pty; // pty file descriptor; connected to rxvt |
178 | int tty; // tty file descriptor; connected to child |
178 | int tty; // tty file descriptor; connected to child |
179 | |
179 | |
|
|
180 | rxvt_ptytty () |
|
|
181 | : pty(-1), tty(-1) |
|
|
182 | { |
|
|
183 | } |
|
|
184 | |
180 | virtual ~rxvt_ptytty () |
185 | virtual ~rxvt_ptytty () |
181 | { |
186 | { |
182 | // |
|
|
183 | } |
187 | } |
184 | |
188 | |
185 | virtual bool get () = 0; |
189 | virtual bool get () = 0; |
186 | #if UTMP_SUPPORT |
190 | #if UTMP_SUPPORT |
187 | virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0; |
191 | virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0; |