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.327 by ayin, Fri Nov 30 01:26:32 2007 UTC vs.
Revision 1.332 by ayin, Fri Dec 14 00:04:23 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)
580#define PrivMode_smoothScroll (1UL<<17) 581#define PrivMode_smoothScroll (1UL<<17)
581#define PrivMode_vt52 (1UL<<18) 582#define PrivMode_vt52 (1UL<<18)
582#define PrivMode_LFNL (1UL<<19) 583#define PrivMode_LFNL (1UL<<19)
583#define PrivMode_MouseBtnEvent (1UL<<20) 584#define PrivMode_MouseBtnEvent (1UL<<20)
584#define PrivMode_MouseAnyEvent (1UL<<21) 585#define PrivMode_MouseAnyEvent (1UL<<21)
585/* too annoying to implement X11 highlight tracking */
586/* #define PrivMode_MouseX11Track (1LU<<20) */
587 586
588#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) 587#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent)
589 588
590#ifdef ALLOW_132_MODE 589#ifdef ALLOW_132_MODE
591# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) 590# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
596// do not change these constants lightly, there are many interdependencies 595// do not change these constants lightly, there are many interdependencies
597#define IMBUFSIZ 128 // input modifier buffer sizes 596#define IMBUFSIZ 128 // input modifier buffer sizes
598#define KBUFSZ 512 // size of keyboard mapping buffer 597#define KBUFSZ 512 // size of keyboard mapping buffer
599#define CBUFSIZ 2048 // size of command buffer 598#define CBUFSIZ 2048 // size of command buffer
600#define UBUFSIZ 2048 // character buffer 599#define UBUFSIZ 2048 // character buffer
601
602#ifndef PATH_MAX
603# define PATH_MAX 16384
604#endif
605 600
606#if ENABLE_FRILLS 601#if ENABLE_FRILLS
607# include <X11/Xmd.h> 602# include <X11/Xmd.h>
608typedef struct _mwmhints { 603typedef struct _mwmhints {
609 CARD32 flags; 604 CARD32 flags;
1104 1099
1105 void tt_printf (const char *fmt,...); 1100 void tt_printf (const char *fmt,...);
1106 void tt_write (const char *data, unsigned int len); 1101 void tt_write (const char *data, unsigned int len);
1107 void pty_write (); 1102 void pty_write ();
1108 1103
1109 bool init (stringvec *argv, stringvec *envv) 1104 void init (stringvec *argv, stringvec *envv)
1110 { 1105 {
1111 this->argv = argv; 1106 this->argv = argv;
1112 return init (argv->size (), argv->begin (), envv); 1107 init (argv->size (), argv->begin (), envv);
1113 } 1108 }
1114 1109
1115 void make_current () const // make this the "currently active" urxvt instance 1110 void make_current () const // make this the "currently active" urxvt instance
1116 { 1111 {
1117 SET_R (this); 1112 SET_R (this);
1173 int privcases (int mode, unsigned long bit); 1168 int privcases (int mode, unsigned long bit);
1174 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); 1169 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg);
1175 void process_sgr_mode (unsigned int nargs, const int *arg); 1170 void process_sgr_mode (unsigned int nargs, const int *arg);
1176 void process_graphics (); 1171 void process_graphics ();
1177 // init.C 1172 // init.C
1178 bool init_vars (); 1173 void init_vars ();
1179 void init_secondary (); 1174 void init_secondary ();
1180 const char **init_resources (int argc, const char *const *argv); 1175 const char **init_resources (int argc, const char *const *argv);
1181 void init_env (); 1176 void init_env ();
1182 void set_locale (const char *locale); 1177 void set_locale (const char *locale);
1183 void init_xlocale (); 1178 void init_xlocale ();
1192 void tt_winch (); 1187 void tt_winch ();
1193 rxvt_term (); 1188 rxvt_term ();
1194 ~rxvt_term (); 1189 ~rxvt_term ();
1195 void destroy (); 1190 void destroy ();
1196 void emergency_cleanup (); 1191 void emergency_cleanup ();
1197 bool init (int argc, const char *const *argv, stringvec *envv); 1192 void init (int argc, const char *const *argv, stringvec *envv);
1198 void recolour_cursor (); 1193 void recolour_cursor ();
1199 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);
1200 void window_calc (unsigned int newwidth, unsigned int newheight); 1195 void window_calc (unsigned int newwidth, unsigned int newheight);
1201 bool set_fonts (); 1196 bool set_fonts ();
1202 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