ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.233 by root, Sun Jan 22 00:36:59 2006 UTC vs.
Revision 1.234 by root, Sun Jan 22 00:48:13 2006 UTC

35#include "encoding.h" 35#include "encoding.h"
36#include "rxvtfont.h" 36#include "rxvtfont.h"
37#include "rxvttoolkit.h" 37#include "rxvttoolkit.h"
38#include "iom.h" 38#include "iom.h"
39#include "salloc.h" 39#include "salloc.h"
40#include "libptytty.h"
40 41
41#include "rxvtperl.h" 42#include "rxvtperl.h"
42 43
43// try to avoid some macros to decrease code size, on some systems 44// try to avoid some macros to decrease code size, on some systems
44#if ENABLE_MINIMAL 45#if ENABLE_MINIMAL
200typedef struct { 201typedef struct {
201 short w, h, x, y; 202 short w, h, x, y;
202 Pixmap pixmap; 203 Pixmap pixmap;
203} bgPixmap_t; 204} bgPixmap_t;
204#endif 205#endif
205
206struct rxvt_ptytty {
207 int pty; // pty file descriptor; connected to rxvt
208 int tty; // tty file descriptor; connected to child
209
210 rxvt_ptytty ()
211 : pty(-1), tty(-1)
212 {
213 }
214
215 virtual ~rxvt_ptytty ()
216 {
217 }
218
219 virtual bool get () = 0;
220 virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0;
221
222 void close_tty ();
223 bool make_controlling_tty ();
224 void set_utf8_mode (bool on);
225};
226
227rxvt_ptytty *rxvt_new_ptytty (); // create a new pty object
228void rxvt_ptytty_server (); // start the ptytty server process
229 206
230/* 207/*
231 * the 'essential' information for reporting Mouse Events 208 * the 'essential' information for reporting Mouse Events
232 * pared down from XButtonEvent 209 * pared down from XButtonEvent
233 */ 210 */
1151 const char *rs[NUM_RESOURCES]; 1128 const char *rs[NUM_RESOURCES];
1152 /* command input buffering */ 1129 /* command input buffering */
1153 char *cmdbuf_ptr, *cmdbuf_endp; 1130 char *cmdbuf_ptr, *cmdbuf_endp;
1154 char cmdbuf_base[CBUFSIZ]; 1131 char cmdbuf_base[CBUFSIZ];
1155 1132
1156 rxvt_ptytty *pty; 1133 ptytty *pty;
1157 1134
1158 rxvt_salloc *talloc; // text line allocator 1135 rxvt_salloc *talloc; // text line allocator
1159 rxvt_salloc *ralloc; // rend line allocator 1136 rxvt_salloc *ralloc; // rend line allocator
1160 1137
1161 static vector<rxvt_term *> termlist; // a vector of all running rxvt_term's 1138 static vector<rxvt_term *> termlist; // a vector of all running rxvt_term's

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines