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.236 by root, Sun Jan 22 17:10:01 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
168extern char **environ; 169extern char **environ;
169extern char **rxvt_environ; // the original environ pointer 170extern char **rxvt_environ; // the original environ pointer
170 171
171inline void set_environ (stringvec *envv) 172inline void set_environ (stringvec *envv)
172{ 173{
174#if ENABLE_PERL
175 assert (envv);
176#else
173 if (envv) 177 if (envv)
178#endif
174 environ = (char **)envv->begin (); 179 environ = (char **)envv->begin ();
175} 180}
176 181
177inline void set_environ (char **envv) 182inline void set_environ (char **envv)
178{ 183{
184#if ENABLE_PERL
185 assert (envv);
186#else
179 if (envv) 187 if (envv)
188#endif
180 environ = envv; 189 environ = envv;
181} 190}
182 191
183/* 192/*
184 ***************************************************************************** 193 *****************************************************************************
200typedef struct { 209typedef struct {
201 short w, h, x, y; 210 short w, h, x, y;
202 Pixmap pixmap; 211 Pixmap pixmap;
203} bgPixmap_t; 212} bgPixmap_t;
204#endif 213#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 214
230/* 215/*
231 * the 'essential' information for reporting Mouse Events 216 * the 'essential' information for reporting Mouse Events
232 * pared down from XButtonEvent 217 * pared down from XButtonEvent
233 */ 218 */
1151 const char *rs[NUM_RESOURCES]; 1136 const char *rs[NUM_RESOURCES];
1152 /* command input buffering */ 1137 /* command input buffering */
1153 char *cmdbuf_ptr, *cmdbuf_endp; 1138 char *cmdbuf_ptr, *cmdbuf_endp;
1154 char cmdbuf_base[CBUFSIZ]; 1139 char cmdbuf_base[CBUFSIZ];
1155 1140
1156 rxvt_ptytty *pty; 1141 ptytty *pty;
1157 1142
1158 rxvt_salloc *talloc; // text line allocator 1143 rxvt_salloc *talloc; // text line allocator
1159 rxvt_salloc *ralloc; // rend line allocator 1144 rxvt_salloc *ralloc; // rend line allocator
1160 1145
1161 static vector<rxvt_term *> termlist; // a vector of all running rxvt_term's 1146 static vector<rxvt_term *> termlist; // a vector of all running rxvt_term's
1272 void create_windows (int argc, const char *const *argv); 1257 void create_windows (int argc, const char *const *argv);
1273 void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); 1258 void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent);
1274 void window_calc (unsigned int newwidth, unsigned int newheight); 1259 void window_calc (unsigned int newwidth, unsigned int newheight);
1275 1260
1276#if USE_XIM 1261#if USE_XIM
1277 rxvt_xim *input_method; 1262 rxvt_xim *input_method;
1278 XIC Input_Context; 1263 XIC Input_Context;
1279 XIMStyle input_style; 1264 XIMStyle input_style;
1280 XPoint spot; // most recently sent spot position 1265 XPoint spot; // most recently sent spot position
1281 1266
1282 void im_destroy (); 1267 void im_destroy ();
1283 void im_cb (); im_watcher im_ev; 1268 void im_cb (); im_watcher im_ev;
1284 void im_set_size (XRectangle &size); 1269 void im_set_size (XRectangle &size);
1285 void im_set_position (XPoint &pos) NOTHROW; 1270 void im_set_position (XPoint &pos) NOTHROW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines