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.189 by root, Fri Jan 6 20:50:58 2006 UTC vs.
Revision 1.195 by root, Wed Jan 11 00:59:58 2006 UTC

18#include "encoding.h" 18#include "encoding.h"
19#include "rxvtfont.h" 19#include "rxvtfont.h"
20#include "rxvttoolkit.h" 20#include "rxvttoolkit.h"
21#include "iom.h" 21#include "iom.h"
22#include "salloc.h" 22#include "salloc.h"
23
24#include "rxvtperl.h"
23 25
24#if ENABLE_FRILLS 26#if ENABLE_FRILLS
25# define ENABLE_XEMBED 1 27# define ENABLE_XEMBED 1
26# define ENABLE_EWMH 1 28# define ENABLE_EWMH 1
27# define CURSOR_BLINK 1 29# define CURSOR_BLINK 1
207# define TERMENV "rxvt-unicode" 209# define TERMENV "rxvt-unicode"
208#endif 210#endif
209 211
210#if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR) 212#if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR)
211# define NO_MOUSE_REPORT_SCROLLBAR 1 213# define NO_MOUSE_REPORT_SCROLLBAR 1
212#endif
213
214#ifdef NO_RESOURCES
215# undef USE_XGETDEFAULT
216#endif 214#endif
217 215
218#if defined (ISO_14755) || defined (ENABLE_PERL) 216#if defined (ISO_14755) || defined (ENABLE_PERL)
219# define ENABLE_OVERLAY 1 217# define ENABLE_OVERLAY 1
220#endif 218#endif
697#define Col2Pixel(col) ((int32_t)Width2Pixel(col)) 695#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
698#define Row2Pixel(row) ((int32_t)Height2Pixel(row)) 696#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
699#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) 697#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth)
700#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) 698#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight)
701 699
700#define TEMP_ENV temp_environ temp_environ (envv)
701
702#define OPTION(opt) (options & (opt))
703#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \
704 | Opt_jumpScroll | Opt_secondaryScreen \
705 | Opt_pastableTabs | Opt_intensityStyles)
706
702// for m >= -n, ensure remainder lies between 0..n-1 707// for m >= -n, ensure remainder lies between 0..n-1
703#define MOD(m,n) (((m) + (n)) % (n)) 708#define MOD(m,n) (((m) + (n)) % (n))
704 709
705#define LINENO(n) MOD (term_start + int(n), total_rows) 710#define LINENO(n) MOD (term_start + int(n), total_rows)
706#define ROW(n) row_buf [LINENO (n)] 711#define ROW(n) row_buf [LINENO (n)]
832extern void rxvt_fatal (const char *fmt, ...) __attribute__ ((noreturn)); 837extern void rxvt_fatal (const char *fmt, ...) __attribute__ ((noreturn));
833extern void rxvt_exit_failure () __attribute__ ((noreturn)); 838extern void rxvt_exit_failure () __attribute__ ((noreturn));
834 839
835#define SET_LOCALE(locale) rxvt_set_locale (locale) 840#define SET_LOCALE(locale) rxvt_set_locale (locale)
836extern bool rxvt_set_locale (const char *locale); 841extern bool rxvt_set_locale (const char *locale);
837extern bool rxvt_push_locale (const char *locale); 842extern void rxvt_push_locale (const char *locale);
838extern void rxvt_pop_locale (); 843extern void rxvt_pop_locale ();
839 844
840/****************************************************************************/ 845/****************************************************************************/
841 846
842#ifdef MENUBAR 847#ifdef MENUBAR
964#ifdef KEYSYM_RESOURCE 969#ifdef KEYSYM_RESOURCE
965 class keyboard_manager; 970 class keyboard_manager;
966#endif 971#endif
967 972
968struct rxvt_term : zero_initialized, rxvt_vars { 973struct rxvt_term : zero_initialized, rxvt_vars {
969 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
970 getfd_callback *getfd_hook; // convert remote to local fd, if != 0 975 getfd_callback *getfd_hook; // convert remote to local fd, if != 0
971
972#if ENABLE_PERL 976#if ENABLE_PERL
973 void *self; // perl's $self 977 rxvt_perl_term perl;
974#endif 978#endif
975
976 struct mbstate mbstate; // current input multibyte state 979 struct mbstate mbstate; // current input multibyte state
977 980
978 unsigned char want_refresh:1, 981 unsigned char want_refresh:1,
979#ifdef TRANSPARENT 982#ifdef TRANSPARENT
980 want_full_refresh:1, /* awaiting full screen refresh */ 983 want_full_refresh:1, /* awaiting full screen refresh */
1439 base += minBrightCOLOR - minCOLOR; 1442 base += minBrightCOLOR - minCOLOR;
1440#endif 1443#endif
1441 return base; 1444 return base;
1442 } 1445 }
1443 1446
1447 bool option (uint32_t opt)
1448 {
1449 return OPTION (opt);
1450 }
1451
1452 void set_option (uint32_t opt, bool set)
1453 {
1454 if (set)
1455 options |= opt;
1456 else
1457 options &= ~opt;
1458 }
1459
1444 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs); 1460 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs);
1445 void scr_blank_screen_mem (line_t &l, rend_t efs); 1461 void scr_blank_screen_mem (line_t &l, rend_t efs);
1446 int scr_scroll_text (int row1, int row2, int count); 1462 int scr_scroll_text (int row1, int row2, int count);
1447 void scr_reset (); 1463 void scr_reset ();
1448 void scr_release (); 1464 void scr_release ();
1491 int scr_move_to (int y, int len); 1507 int scr_move_to (int y, int len);
1492 int scr_page (enum page_dirn direction, int nlines); 1508 int scr_page (enum page_dirn direction, int nlines);
1493 int scr_changeview (unsigned int oldviewstart); 1509 int scr_changeview (unsigned int oldviewstart);
1494 void scr_bell (); 1510 void scr_bell ();
1495 void scr_printscreen (int fullhist); 1511 void scr_printscreen (int fullhist);
1512 void scr_xor_rect (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle1, rend_t rstyle2);
1513 void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle);
1496 void scr_reverse_selection (); 1514 void scr_reverse_selection ();
1497 void scr_dump (int fd); 1515 void scr_dump (int fd);
1498 void selection_check (int check_more); 1516 void selection_check (int check_more);
1499 void selection_paste (Window win, Atom prop, bool delete_prop); 1517 void selection_paste (Window win, Atom prop, bool delete_prop);
1500 void selection_property (Window win, Atom prop); 1518 void selection_property (Window win, Atom prop);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines