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.329 by ayin, Wed Dec 12 09:33:48 2007 UTC vs.
Revision 1.333 by root, Fri Dec 14 05:25:25 2007 UTC

79# define STDIN_FILENO 0 79# define STDIN_FILENO 0
80# define STDOUT_FILENO 1 80# define STDOUT_FILENO 1
81# define STDERR_FILENO 2 81# define STDERR_FILENO 2
82#endif 82#endif
83 83
84#if !defined (EACCESS) && defined(EAGAIN)
85# define EACCESS EAGAIN
86#endif
87
88#ifndef EXIT_SUCCESS /* missing from <stdlib.h> */
89# define EXIT_SUCCESS 0 /* exit function success */
90# define EXIT_FAILURE 1 /* exit function failure */
91#endif
92
93#ifndef PATH_MAX
94# define PATH_MAX 16384
95#endif
96
84/****************************************************************************/ 97/****************************************************************************/
85 98
86// exception thrown on fatal (per-instance) errors 99// exception thrown on fatal (per-instance) errors
87class rxvt_failure_exception { }; 100class rxvt_failure_exception { };
88 101
145/* 158/*
146 ***************************************************************************** 159 *****************************************************************************
147 * STRUCTURES AND TYPEDEFS 160 * STRUCTURES AND TYPEDEFS
148 ***************************************************************************** 161 *****************************************************************************
149 */ 162 */
150struct grwin_t;
151 163
152/* If we're using either the rxvt scrollbar, keep the 164/* If we're using either the rxvt scrollbar, keep the
153 * scrollColor resource. 165 * scrollColor resource.
154 */ 166 */
155#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(PLAIN_SCROLLBAR) 167#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(PLAIN_SCROLLBAR)
211# define TERMENV "rxvt-unicode" 223# define TERMENV "rxvt-unicode"
212#endif 224#endif
213 225
214#if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR) 226#if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR)
215# define NO_MOUSE_REPORT_SCROLLBAR 1 227# define NO_MOUSE_REPORT_SCROLLBAR 1
216#endif
217
218/* now look for other badly set stuff */
219
220#if !defined (EACCESS) && defined(EAGAIN)
221# define EACCESS EAGAIN
222#endif
223
224#ifndef EXIT_SUCCESS /* missing from <stdlib.h> */
225# define EXIT_SUCCESS 0 /* exit function success */
226# define EXIT_FAILURE 1 /* exit function failure */
227#endif 228#endif
228 229
229#define scrollBar_esc 30 230#define scrollBar_esc 30
230 231
231#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) 232#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR)
595#define IMBUFSIZ 128 // input modifier buffer sizes 596#define IMBUFSIZ 128 // input modifier buffer sizes
596#define KBUFSZ 512 // size of keyboard mapping buffer 597#define KBUFSZ 512 // size of keyboard mapping buffer
597#define CBUFSIZ 2048 // size of command buffer 598#define CBUFSIZ 2048 // size of command buffer
598#define UBUFSIZ 2048 // character buffer 599#define UBUFSIZ 2048 // character buffer
599 600
600#ifndef PATH_MAX
601# define PATH_MAX 16384
602#endif
603
604#if ENABLE_FRILLS 601#if ENABLE_FRILLS
605# include <X11/Xmd.h> 602# include <X11/Xmd.h>
606typedef struct _mwmhints { 603typedef struct _mwmhints {
607 CARD32 flags; 604 CARD32 flags;
608 CARD32 functions; 605 CARD32 functions;
1064#ifdef HAVE_SCROLLBARS 1061#ifdef HAVE_SCROLLBARS
1065 xevent_watcher scrollbar_ev; 1062 xevent_watcher scrollbar_ev;
1066#endif 1063#endif
1067 1064
1068 void child_cb (ev::child &w, int revents); ev::child child_ev; 1065 void child_cb (ev::child &w, int revents); ev::child child_ev;
1069 void prepare_cb (ev::prepare &w, int revents); ev::prepare prepare_ev;
1070 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev; 1066 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev;
1067 void refresh_check ();
1071 void flush (); 1068 void flush ();
1072 void flush_cb (ev::timer &w, int revents); ev::timer flush_ev; 1069 void flush_cb (ev::timer &w, int revents); ev::timer flush_ev;
1073 bool pty_fill (); 1070 bool pty_fill ();
1074 void pty_cb (ev::io &w, int revents); ev::io pty_ev; 1071 void pty_cb (ev::io &w, int revents); ev::io pty_ev;
1075 void incr_cb (ev::timer &w, int revents) NOTHROW; ev::timer incr_ev; 1072 void incr_cb (ev::timer &w, int revents) NOTHROW; ev::timer incr_ev;
1102 1099
1103 void tt_printf (const char *fmt,...); 1100 void tt_printf (const char *fmt,...);
1104 void tt_write (const char *data, unsigned int len); 1101 void tt_write (const char *data, unsigned int len);
1105 void pty_write (); 1102 void pty_write ();
1106 1103
1107 bool init (stringvec *argv, stringvec *envv) 1104 void init (stringvec *argv, stringvec *envv)
1108 { 1105 {
1109 this->argv = argv; 1106 this->argv = argv;
1110 return init (argv->size (), argv->begin (), envv); 1107 init (argv->size (), argv->begin (), envv);
1111 } 1108 }
1112 1109
1113 void make_current () const // make this the "currently active" urxvt instance 1110 void make_current () const // make this the "currently active" urxvt instance
1114 { 1111 {
1115 SET_R (this); 1112 SET_R (this);
1190 void tt_winch (); 1187 void tt_winch ();
1191 rxvt_term (); 1188 rxvt_term ();
1192 ~rxvt_term (); 1189 ~rxvt_term ();
1193 void destroy (); 1190 void destroy ();
1194 void emergency_cleanup (); 1191 void emergency_cleanup ();
1195 bool init (int argc, const char *const *argv, stringvec *envv); 1192 void init (int argc, const char *const *argv, stringvec *envv);
1196 void recolour_cursor (); 1193 void recolour_cursor ();
1197 void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); 1194 void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent);
1198 void window_calc (unsigned int newwidth, unsigned int newheight); 1195 void window_calc (unsigned int newwidth, unsigned int newheight);
1199 bool set_fonts (); 1196 bool set_fonts ();
1200 void set_string_property (Atom prop, const char *str, int len = -1); 1197 void set_string_property (Atom prop, const char *str, int len = -1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines