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.372 by root, Wed Nov 5 14:43:54 2008 UTC vs.
Revision 1.382 by root, Tue Mar 30 22:46:25 2010 UTC

110 110
111#ifndef STDIN_FILENO 111#ifndef STDIN_FILENO
112# define STDIN_FILENO 0 112# define STDIN_FILENO 0
113# define STDOUT_FILENO 1 113# define STDOUT_FILENO 1
114# define STDERR_FILENO 2 114# define STDERR_FILENO 2
115#endif
116
117#if !defined (EACCESS) && defined(EAGAIN)
118# define EACCESS EAGAIN
119#endif 115#endif
120 116
121#ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ 117#ifndef EXIT_SUCCESS /* missing from <stdlib.h> */
122# define EXIT_SUCCESS 0 /* exit function success */ 118# define EXIT_SUCCESS 0 /* exit function success */
123# define EXIT_FAILURE 1 /* exit function failure */ 119# define EXIT_FAILURE 1 /* exit function failure */
151char * rxvt_wcstombs (const wchar_t *str, int len = -1); 147char * rxvt_wcstombs (const wchar_t *str, int len = -1);
152wchar_t * rxvt_mbstowcs (const char *str, int len = -1); 148wchar_t * rxvt_mbstowcs (const char *str, int len = -1);
153char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); 149char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1);
154wchar_t * rxvt_utf8towcs (const char *str, int len = -1); 150wchar_t * rxvt_utf8towcs (const char *str, int len = -1);
155 151
156char * rxvt_basename (const char *str) NOTHROW; 152const char * rxvt_basename (const char *str) NOTHROW;
157void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; 153void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW;
158void rxvt_log (const char *fmt,...) NOTHROW; 154void rxvt_log (const char *fmt,...) NOTHROW;
159void rxvt_warn (const char *fmt,...) NOTHROW; 155void rxvt_warn (const char *fmt,...) NOTHROW;
160void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; 156void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN;
161void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; 157void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN;
340#define RS_styleShift 14 336#define RS_styleShift 14
341 337
342#define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline) 338#define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline)
343#define RS_attrMask (RS_baseattrMask | RS_fontMask) 339#define RS_attrMask (RS_baseattrMask | RS_fontMask)
344 340
345#define RS_fontCount 127 // not 127 or 256, see rxvtfont.h 341#define RS_fontCount rxvt_fontset::fontCount
346#define RS_fontMask 0xff000000UL // plenty(?) of fonts, includes RS_Careful 342#define RS_fontMask 0xff000000UL // plenty(?) of fonts, includes RS_Careful
347#define RS_fontShift 24 343#define RS_fontShift 24
348 344
349#define DEFAULT_RSTYLE (RS_None | Color_fg | (Color_bg << Color_Bits)) 345#define DEFAULT_RSTYLE (RS_None | Color_fg | (Color_bg << Color_Bits))
350#define OVERLAY_RSTYLE (RS_None | Color_Black | (Color_Yellow << Color_Bits)) 346#define OVERLAY_RSTYLE (RS_None | Color_Black | (Color_Yellow << Color_Bits))
411 407
412 URxvt_Color_IT = 704, // change actual 'Italic' colour 408 URxvt_Color_IT = 704, // change actual 'Italic' colour
413 URxvt_Color_tint = 705, // change actual tint colour 409 URxvt_Color_tint = 705, // change actual tint colour
414 URxvt_Color_BD = 706, // change actual 'Bold' color 410 URxvt_Color_BD = 706, // change actual 'Bold' color
415 URxvt_Color_UL = 707, // change actual 'Underline' color 411 URxvt_Color_UL = 707, // change actual 'Underline' color
412 URxvt_Color_border = 708,
416 413
417 URxvt_font = 710, 414 URxvt_font = 710,
418 URxvt_boldFont = 711, 415 URxvt_boldFont = 711,
419 URxvt_italicFont = 712, 416 URxvt_italicFont = 712,
420 URxvt_boldItalicFont = 713, 417 URxvt_boldItalicFont = 713,
846 int focus; /* window has focus */ 843 int focus; /* window has focus */
847 int mapped; /* window state mapped? */ 844 int mapped; /* window state mapped? */
848 int int_bwidth; /* internal border width */ 845 int int_bwidth; /* internal border width */
849 int ext_bwidth; /* external border width */ 846 int ext_bwidth; /* external border width */
850 int lineSpace; /* number of extra pixels between rows */ 847 int lineSpace; /* number of extra pixels between rows */
848 int letterSpace; /* number of extra pixels between columns */
851 int saveLines; /* number of lines that fit in scrollback */ 849 int saveLines; /* number of lines that fit in scrollback */
852 int total_rows; /* total number of rows in this terminal */ 850 int total_rows; /* total number of rows in this terminal */
853 int term_start; /* term lines start here */ 851 int term_start; /* term lines start here */
854 int view_start; /* scrollback view starts here */ 852 int view_start; /* scrollback view starts here */
855 int top_row; /* topmost row index of scrollback */ 853 int top_row; /* topmost row index of scrollback */
910 selection_op_t op; /* current operation */ 908 selection_op_t op; /* current operation */
911 bool rect; /* rectangular selection? */ 909 bool rect; /* rectangular selection? */
912 row_col_t beg; /* beginning of selection <= mark */ 910 row_col_t beg; /* beginning of selection <= mark */
913 row_col_t mark; /* point of initial click <= end */ 911 row_col_t mark; /* point of initial click <= end */
914 row_col_t end; /* one character past end point */ 912 row_col_t end; /* one character past end point */
913 wchar_t *clip_text; /* text copied to the clipboard */
914 unsigned int clip_len; /* length of clipboard text */
915}; 915};
916 916
917/* ------------------------------------------------------------------------- */ 917/* ------------------------------------------------------------------------- */
918 918
919/* screen_t flags */ 919/* screen_t flags */
974 974
975 unsigned char want_refresh:1, 975 unsigned char want_refresh:1,
976 current_screen:1, /* primary or secondary */ 976 current_screen:1, /* primary or secondary */
977 num_scr_allow:1, 977 num_scr_allow:1,
978 bypass_keystate:1, 978 bypass_keystate:1,
979#ifdef ENABLE_FRILLS 979#if ENABLE_FRILLS
980 urgency_hint:1, 980 urgency_hint:1,
981#endif 981#endif
982#ifdef CURSOR_BLINK 982#if CURSOR_BLINK
983 hidden_cursor:1, 983 hidden_cursor:1,
984#endif 984#endif
985#ifdef TEXT_BLINK 985#if TEXT_BLINK
986 hidden_text:1, 986 hidden_text:1,
987#endif 987#endif
988#ifdef POINTER_BLANK 988#if POINTER_BLANK
989 hidden_pointer:1, 989 hidden_pointer:1,
990#endif 990#endif
991 enc_utf8:1, /* wether locale uses utf-8 */ 991 enc_utf8:1, /* wether locale uses utf-8 */
992 seen_input:1, /* wether we have seen some program output yet */ 992 seen_input:1, /* wether we have seen some program output yet */
993 seen_resize:1, /* wether we had a resize event */ 993 seen_resize:1, /* wether we had a resize event */
1002/* ---------- */ 1002/* ---------- */
1003 bool rvideo_state, rvideo_mode; 1003 bool rvideo_state, rvideo_mode;
1004#ifndef NO_BELL 1004#ifndef NO_BELL
1005 bool rvideo_bell; 1005 bool rvideo_bell;
1006#endif 1006#endif
1007 int num_scr; /* screen: number lines scrolled */ 1007 int num_scr; /* screen: number of lines scrolled */
1008 int prev_ncol, /* screen: previous number of columns */ 1008 int prev_ncol, /* screen: previous number of columns */
1009 prev_nrow; /* screen: previous number of rows */ 1009 prev_nrow; /* screen: previous number of rows */
1010/* ---------- */ 1010/* ---------- */
1011 rend_t rstyle; 1011 rend_t rstyle;
1012/* ---------- */ 1012/* ---------- */
1042 SavedModes; 1042 SavedModes;
1043/* ---------- */ 1043/* ---------- */
1044 Atom *xa; 1044 Atom *xa;
1045/* ---------- */ 1045/* ---------- */
1046 Time selection_time, 1046 Time selection_time,
1047 selection_request_time; 1047 selection_request_time,
1048 clipboard_time;
1048 pid_t cmd_pid; /* process id of child */ 1049 pid_t cmd_pid; /* process id of child */
1049 char * incr_buf; 1050 char * incr_buf;
1050 size_t incr_buf_size, incr_buf_fill; 1051 size_t incr_buf_size, incr_buf_fill;
1051/* ---------- */ 1052/* ---------- */
1052 struct mouse_event MEvent; 1053 struct mouse_event MEvent;
1233 void mouse_report (XButtonEvent &ev); 1234 void mouse_report (XButtonEvent &ev);
1234 void button_press (XButtonEvent &ev); 1235 void button_press (XButtonEvent &ev);
1235 void button_release (XButtonEvent &ev); 1236 void button_release (XButtonEvent &ev);
1236 void focus_in (); 1237 void focus_in ();
1237 void focus_out (); 1238 void focus_out ();
1239#if ENABLE_FRILLS
1238 void set_urgency (bool enable); 1240 void set_urgency (bool enable);
1241#else
1242 void set_urgency (bool enable) { }
1243#endif
1239 void update_fade_color (unsigned int idx); 1244 void update_fade_color (unsigned int idx);
1240#ifdef PRINTPIPE 1245#ifdef PRINTPIPE
1241 FILE *popen_printer (); 1246 FILE *popen_printer ();
1242 int pclose_printer (FILE *stream); 1247 int pclose_printer (FILE *stream);
1243#endif 1248#endif
1249 void process_window_ops (const int *args, unsigned int nargs); 1254 void process_window_ops (const int *args, unsigned int nargs);
1250 char *get_to_st (unicode_t &ends_how); 1255 char *get_to_st (unicode_t &ends_how);
1251 void process_dcs_seq (); 1256 void process_dcs_seq ();
1252 void process_osc_seq (); 1257 void process_osc_seq ();
1253 void process_color_seq (int report, int color, const char *str, char resp); 1258 void process_color_seq (int report, int color, const char *str, char resp);
1254 void process_xterm_seq (int op, const char *str, char resp); 1259 void process_xterm_seq (int op, char *str, char resp);
1255 int privcases (int mode, unsigned long bit); 1260 int privcases (int mode, unsigned long bit);
1256 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); 1261 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg);
1257 void process_sgr_mode (unsigned int nargs, const int *arg); 1262 void process_sgr_mode (unsigned int nargs, const int *arg);
1258 void process_graphics (); 1263 void process_graphics ();
1259 // init.C 1264 // init.C
1445 void selection_check (int check_more) NOTHROW; 1450 void selection_check (int check_more) NOTHROW;
1446 void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW; 1451 void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW;
1447 void selection_property (Window win, Atom prop) NOTHROW; 1452 void selection_property (Window win, Atom prop) NOTHROW;
1448 void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW; 1453 void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW;
1449 int selection_request_other (Atom target, int selnum) NOTHROW; 1454 int selection_request_other (Atom target, int selnum) NOTHROW;
1450 void selection_clear () NOTHROW; 1455 void selection_clear (bool clipboard = false) NOTHROW;
1456 void clipboard_copy (Time tm);
1451 void selection_make (Time tm); 1457 void selection_make (Time tm);
1452 bool selection_grab (Time tm) NOTHROW; 1458 bool selection_grab (Time tm, bool clipboard = false) NOTHROW;
1453 void selection_start_colrow (int col, int row) NOTHROW; 1459 void selection_start_colrow (int col, int row) NOTHROW;
1454 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW; 1460 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW;
1455 void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW; 1461 void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW;
1456 void selection_remove_trailing_spaces () NOTHROW; 1462 void selection_remove_trailing_spaces () NOTHROW;
1457 void selection_send (const XSelectionRequestEvent &rq) NOTHROW; 1463 void selection_send (const XSelectionRequestEvent &rq) NOTHROW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines