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.191 by root, Sun Jan 8 01:02:15 2006 UTC vs.
Revision 1.196 by root, Wed Jan 11 02:13:56 2006 UTC

209# define TERMENV "rxvt-unicode" 209# define TERMENV "rxvt-unicode"
210#endif 210#endif
211 211
212#if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR) 212#if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR)
213# define NO_MOUSE_REPORT_SCROLLBAR 1 213# define NO_MOUSE_REPORT_SCROLLBAR 1
214#endif
215
216#ifdef NO_RESOURCES
217# undef USE_XGETDEFAULT
218#endif 214#endif
219 215
220#if defined (ISO_14755) || defined (ENABLE_PERL) 216#if defined (ISO_14755) || defined (ENABLE_PERL)
221# define ENABLE_OVERLAY 1 217# define ENABLE_OVERLAY 1
222#endif 218#endif
699#define Col2Pixel(col) ((int32_t)Width2Pixel(col)) 695#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
700#define Row2Pixel(row) ((int32_t)Height2Pixel(row)) 696#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
701#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) 697#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth)
702#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) 698#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight)
703 699
700#define TEMP_ENV temp_environ temp_environ (envv)
701
704#define OPTION(opt) (options & (opt)) 702#define OPTION(opt) (options & (opt))
705#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ 703#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \
706 | Opt_jumpScroll | Opt_secondaryScreen \ 704 | Opt_jumpScroll | Opt_secondaryScreen \
707 | Opt_pastableTabs | Opt_intensityStyles) 705 | Opt_pastableTabs | Opt_intensityStyles)
708 706
709// for m >= -n, ensure remainder lies between 0..n-1 707// for m >= -n, ensure remainder lies between 0..n-1
710#define MOD(m,n) (((m) + (n)) % (n)) 708#define MOD(m,n) (((m) + (n)) % (n))
711 709
712#define LINENO(n) MOD (term_start + int(n), total_rows) 710#define LINENO(n) MOD (term_start + int(n), total_rows)
839extern void rxvt_fatal (const char *fmt, ...) __attribute__ ((noreturn)); 837extern void rxvt_fatal (const char *fmt, ...) __attribute__ ((noreturn));
840extern void rxvt_exit_failure () __attribute__ ((noreturn)); 838extern void rxvt_exit_failure () __attribute__ ((noreturn));
841 839
842#define SET_LOCALE(locale) rxvt_set_locale (locale) 840#define SET_LOCALE(locale) rxvt_set_locale (locale)
843extern bool rxvt_set_locale (const char *locale); 841extern bool rxvt_set_locale (const char *locale);
844extern bool rxvt_push_locale (const char *locale); 842extern void rxvt_push_locale (const char *locale);
845extern void rxvt_pop_locale (); 843extern void rxvt_pop_locale ();
846 844
847/****************************************************************************/ 845/****************************************************************************/
848 846
849#ifdef MENUBAR 847#ifdef MENUBAR
973#endif 971#endif
974 972
975struct rxvt_term : zero_initialized, rxvt_vars { 973struct rxvt_term : zero_initialized, rxvt_vars {
976 log_callback *log_hook; // log error messages through this hook, if != 0 974 log_callback *log_hook; // log error messages through this hook, if != 0
977 getfd_callback *getfd_hook; // convert remote to local fd, if != 0 975 getfd_callback *getfd_hook; // convert remote to local fd, if != 0
978
979#if ENABLE_PERL 976#if ENABLE_PERL
980 rxvt_perl_term perl; 977 rxvt_perl_term perl;
981#endif 978#endif
982
983 struct mbstate mbstate; // current input multibyte state 979 struct mbstate mbstate; // current input multibyte state
984 980
985 unsigned char want_refresh:1, 981 unsigned char want_refresh:1,
986#ifdef TRANSPARENT 982#ifdef TRANSPARENT
987 want_full_refresh:1, /* awaiting full screen refresh */ 983 want_full_refresh:1, /* awaiting full screen refresh */
1260 1256
1261 bool pty_fill (); 1257 bool pty_fill ();
1262 1258
1263 void init_secondary (); 1259 void init_secondary ();
1264 const char **init_resources (int argc, const char *const *argv); 1260 const char **init_resources (int argc, const char *const *argv);
1261 const char *x_resource (const char *name);
1265 void init_env (); 1262 void init_env ();
1266 void set_locale (const char *locale); 1263 void set_locale (const char *locale);
1267 void init_xlocale (); 1264 void init_xlocale ();
1268 void init_command (const char *const *argv); 1265 void init_command (const char *const *argv);
1269 void run_command (const char *const *argv); 1266 void run_command (const char *const *argv);
1511 int scr_move_to (int y, int len); 1508 int scr_move_to (int y, int len);
1512 int scr_page (enum page_dirn direction, int nlines); 1509 int scr_page (enum page_dirn direction, int nlines);
1513 int scr_changeview (unsigned int oldviewstart); 1510 int scr_changeview (unsigned int oldviewstart);
1514 void scr_bell (); 1511 void scr_bell ();
1515 void scr_printscreen (int fullhist); 1512 void scr_printscreen (int fullhist);
1513 void scr_xor_rect (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle1, rend_t rstyle2);
1514 void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle);
1516 void scr_reverse_selection (); 1515 void scr_reverse_selection ();
1517 void scr_dump (int fd); 1516 void scr_dump (int fd);
1518 void selection_check (int check_more); 1517 void selection_check (int check_more);
1519 void selection_paste (Window win, Atom prop, bool delete_prop); 1518 void selection_paste (Window win, Atom prop, bool delete_prop);
1520 void selection_property (Window win, Atom prop); 1519 void selection_property (Window win, Atom prop);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines