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.9 by pcg, Thu Nov 27 16:49:45 2003 UTC vs.
Revision 1.15 by pcg, Thu Dec 18 02:07:12 2003 UTC

1/* 1/*
2 * $Id: rxvt.h,v 1.9 2003/11/27 16:49:45 pcg Exp $ 2 * $Id: rxvt.h,v 1.15 2003/12/18 02:07:12 pcg Exp $
3 */ 3 */
4 4
5#ifndef _RXVT_H_ /* include once only */ 5#ifndef _RXVT_H_ /* include once only */
6#define _RXVT_H_ 6#define _RXVT_H_
7 7
15#include <X11/Xatom.h> 15#include <X11/Xatom.h>
16 16
17#include "defaultfont.h" 17#include "defaultfont.h"
18#include "rxvtcolor.h" 18#include "rxvtcolor.h"
19#include "iom.h" 19#include "iom.h"
20#include "salloc.h"
20 21
21/* 22/*
22 ***************************************************************************** 23 *****************************************************************************
23 * SYSTEM HACKS 24 * SYSTEM HACKS
24 ***************************************************************************** 25 *****************************************************************************
480 Rs_backgroundPixmap, 481 Rs_backgroundPixmap,
481#endif 482#endif
482#if (MENUBAR_MAX) 483#if (MENUBAR_MAX)
483 Rs_menu, 484 Rs_menu,
484#endif 485#endif
485#ifndef NO_BOLDFONT
486 Rs_boldFont,
487#endif
488#ifdef GREEK_SUPPORT 486#ifdef GREEK_SUPPORT
489 Rs_greek_keyboard, 487 Rs_greek_keyboard,
490 Rs_greektoggle_key, 488 Rs_greektoggle_key,
491#endif 489#endif
492 Rs_loginShell, 490 Rs_loginShell,
551 Rs_answerbackstring, 549 Rs_answerbackstring,
552 Rs_tripleclickwords, 550 Rs_tripleclickwords,
553 Rs_cursorBlink, 551 Rs_cursorBlink,
554 Rs_pointerBlank, 552 Rs_pointerBlank,
555 Rs_pointerBlankDelay, 553 Rs_pointerBlankDelay,
554 Rs_imLocale,
556 NUM_RESOURCES 555 NUM_RESOURCES
557};
558
559enum {
560 TIMEOUT_INCR = 0,
561 NUM_TIMEOUTS
562}; 556};
563 557
564enum { 558enum {
565 XA_COMPOUND_TEXT = 0, 559 XA_COMPOUND_TEXT = 0,
566 XA_MULTIPLE, 560 XA_MULTIPLE,
773 767
774#ifndef STRICT_FONT_CHECKING 768#ifndef STRICT_FONT_CHECKING
775# define rxvt_get_fontwidest(font) ((font)->max_bounds.width) 769# define rxvt_get_fontwidest(font) ((font)->max_bounds.width)
776#endif 770#endif
777 771
778#define rxvt_Gr_ButtonPress(x,y) rxvt_Gr_ButtonReport (r, 'P',(x),(y)) 772#define rxvt_Gr_ButtonPress(x,y) rxvt_Gr_ButtonReport (R, 'P',(x),(y))
779#define rxvt_Gr_ButtonRelease(x,y) rxvt_Gr_ButtonReport (r, 'R',(x),(y)) 773#define rxvt_Gr_ButtonRelease(x,y) rxvt_Gr_ButtonReport (R, 'R',(x),(y))
780 774
781#ifdef UTMP_SUPPORT 775#ifdef UTMP_SUPPORT
782# if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) 776# if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX)
783# undef HAVE_UTMPX_H 777# undef HAVE_UTMPX_H
784# undef HAVE_STRUCT_UTMPX 778# undef HAVE_STRUCT_UTMPX
854 } 848 }
855}; 849};
856 850
857struct rxvt_term : rxvt_vars { 851struct rxvt_term : rxvt_vars {
858 struct mbstate mbstate; 852 struct mbstate mbstate;
859#ifdef __GNUC__ 853
860 unsigned char want_refresh:1, 854 unsigned char want_refresh:1,
861 want_full_refresh:1, 855#ifdef TRANSPARENT
862 am_transparent:1, 856 want_full_refresh:1, /* awaiting full screen refresh */
863 am_pixmap_trans:1, 857#endif
864 current_screen:1, 858#if defined(XPM_BACKGROUND) || defined(TRANSPARENT)
865 hate_those_clicks:1, 859 am_transparent:1, /* is a transparent term */
860 am_pixmap_trans:1, /* transparency w/known root pixmap */
861#endif
862 current_screen:1, /* primary or secondary */
863 hate_those_clicks:1, /* a.k.a. keep mark position */
866 num_scr_allow:1, 864 num_scr_allow:1,
867 bypass_keystate:1; 865 bypass_keystate:1,
868 unsigned char chstat:1, 866#ifdef CURSOR_BLINK
869 lost_multi:1,
870 multi_byte:1,
871 hidden_cursor:1, 867 hidden_cursor:1,
868#endif
869#ifdef POINTER_BLANK
872 hidden_pointer:1, 870 hidden_pointer:1,
871#endif
873 parsed_geometry:1; 872 parsed_geometry:1,
874#else 873 seen_input:1; /* wether any input has been seen so far */
875 unsigned char want_refresh,
876# ifdef TRANSPARENT
877 want_full_refresh, /* awaiting full screen refresh */
878# endif
879# if defined(XPM_BACKGROUND) || defined(TRANSPARENT)
880 am_transparent, /* is a transparent term */
881 am_pixmap_trans, /* transparency w/known root pixmap */
882# endif
883 current_screen, /* primary or secondary */
884 hate_those_clicks, /* a.k.a. keep mark position */
885 num_scr_allow,
886 bypass_keystate,
887# ifdef MULTICHAR_SET
888 chstat,
889 lost_multi, /* set ==> we only got half a glyph */
890 multi_byte, /* set ==> currently using 2 bytes per glyph */
891# endif
892# ifdef CURSOR_BLINK
893 hidden_cursor,
894# endif
895# ifdef POINTER_BLANK
896 hidden_pointer,
897# endif
898 parsed_geometry;
899#endif /* !__GNUC__ */
900 874
901 unsigned char refresh_type, 875 unsigned char refresh_type,
902#ifdef UTMP_SUPPORT 876#ifdef UTMP_SUPPORT
903 next_utmp_action, 877 next_utmp_action,
904#endif 878#endif
956 currmaxcol, 930 currmaxcol,
957#ifdef MENUBAR 931#ifdef MENUBAR
958 menu_readonly, /* okay to alter menu? */ 932 menu_readonly, /* okay to alter menu? */
959 Arrows_x, 933 Arrows_x,
960#endif 934#endif
961#if (MENUBAR_MAX > 1) 935#if MENUBAR_MAX > 1
962 Nbars, 936 Nbars,
963#endif 937#endif
964 window_vt_x, 938 window_vt_x,
965 window_vt_y, 939 window_vt_y,
966 window_sb_x, 940 window_sb_x,
1089 struct timeval lastcursorchange; 1063 struct timeval lastcursorchange;
1090#endif 1064#endif
1091#ifdef POINTER_BLANK 1065#ifdef POINTER_BLANK
1092 struct timeval lastmotion; 1066 struct timeval lastmotion;
1093#endif 1067#endif
1094 struct timeval timeout[NUM_TIMEOUTS];
1095 1068
1096/* these three don't need to be kept but do so to placate some mem checkers */ 1069/* these three don't need to be kept but do so to placate some mem checkers */
1097 char *env_windowid; /* environmental variable WINDOWID */ 1070 char *env_windowid; /* environmental variable WINDOWID */
1098 char *env_display; /* environmental variable DISPLAY */ 1071 char *env_display; /* environmental variable DISPLAY */
1099 char *env_term; /* environmental variable TERM */ 1072 char *env_term; /* environmental variable TERM */
1111/* command input buffering */ 1084/* command input buffering */
1112 unsigned char *cmdbuf_ptr, *cmdbuf_endp; 1085 unsigned char *cmdbuf_ptr, *cmdbuf_endp;
1113 unsigned char cmdbuf_base[BUFSIZ]; 1086 unsigned char cmdbuf_base[BUFSIZ];
1114 unsigned char kbuf[KBUFSZ]; 1087 unsigned char kbuf[KBUFSZ];
1115 1088
1089 rxvt_salloc *ralloc;
1090 rxvt_salloc *talloc;
1091
1092 void paste (const unsigned char *data, unsigned int len);
1093
1094 void flush ();
1095
1096 void check_cb (check_watcher &w); check_watcher check_ev;
1116 void destroy_cb (time_watcher &w); time_watcher destroy_ev; 1097 void destroy_cb (time_watcher &w); time_watcher destroy_ev;
1117 1098
1118 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; 1099 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev;
1119 void x_cb (io_watcher &w, short revents); io_watcher x_ev; 1100 void x_cb (io_watcher &w, short revents); io_watcher x_ev;
1101
1102 void incr_cb (time_watcher &w); time_watcher incr_ev;
1120 1103
1121#ifdef CURSOR_BLINK 1104#ifdef CURSOR_BLINK
1122 void blink_cb (time_watcher &w); time_watcher blink_ev; 1105 void blink_cb (time_watcher &w); time_watcher blink_ev;
1123#endif 1106#endif
1124 1107
1129#endif 1112#endif
1130 1113
1131 void tt_printf (const char *fmt,...); 1114 void tt_printf (const char *fmt,...);
1132 void tt_write (const unsigned char *data, unsigned int len); 1115 void tt_write (const unsigned char *data, unsigned int len);
1133 1116
1134 void flush (); 1117 void tt_winch ();
1135 1118
1136 rxvt_term (); 1119 rxvt_term ();
1137 ~rxvt_term (); 1120 ~rxvt_term ();
1138 void destroy (); 1121 void destroy ();
1139 1122
1145 bool pty_fill (); 1128 bool pty_fill ();
1146 void process_x_events (); 1129 void process_x_events ();
1147 1130
1148 void *operator new (size_t s); 1131 void *operator new (size_t s);
1149 void operator delete (void *p, size_t s); 1132 void operator delete (void *p, size_t s);
1133
1134 /* screen(!) */
1135 void scr_blank_line (text_t *et, rend_t *er, unsigned int width, rend_t efs);
1136 void scr_blank_screen_mem (text_t **tp, rend_t **rp, unsigned int row, rend_t efs);
1137 int scr_scroll_text (int row1, int row2, int count, int spec);
1138 void scr_reset ();
1139 void scr_reset_realloc ();
1140 void scr_release ();
1150}; 1141};
1151 1142
1152#ifndef __attribute__ 1143#ifndef __attribute__
1153# ifdef __GNUC__ 1144# ifdef __GNUC__
1154# if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2) 1145# if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines