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.11 by pcg, Tue Dec 16 23:04:13 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.11 2003/12/16 23:04:13 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
555 Rs_pointerBlankDelay, 555 Rs_pointerBlankDelay,
556 NUM_RESOURCES 556 NUM_RESOURCES
557}; 557};
558 558
559enum { 559enum {
560 TIMEOUT_INCR = 0,
561 NUM_TIMEOUTS
562};
563
564enum {
565 XA_COMPOUND_TEXT = 0, 560 XA_COMPOUND_TEXT = 0,
566 XA_MULTIPLE, 561 XA_MULTIPLE,
567 XA_TARGETS, 562 XA_TARGETS,
568 XA_TEXT, 563 XA_TEXT,
569 XA_TIMESTAMP, 564 XA_TIMESTAMP,
854 } 849 }
855}; 850};
856 851
857struct rxvt_term : rxvt_vars { 852struct rxvt_term : rxvt_vars {
858 struct mbstate mbstate; 853 struct mbstate mbstate;
859#ifdef __GNUC__ 854
860 unsigned char want_refresh:1, 855 unsigned char want_refresh:1,
861 want_full_refresh:1, 856#ifdef TRANSPARENT
862 am_transparent:1, 857 want_full_refresh:1, /* awaiting full screen refresh */
863 am_pixmap_trans:1, 858#endif
864 current_screen:1, 859#if defined(XPM_BACKGROUND) || defined(TRANSPARENT)
865 hate_those_clicks:1, 860 am_transparent:1, /* is a transparent term */
861 am_pixmap_trans:1, /* transparency w/known root pixmap */
862#endif
863 current_screen:1, /* primary or secondary */
864 hate_those_clicks:1, /* a.k.a. keep mark position */
866 num_scr_allow:1, 865 num_scr_allow:1,
867 bypass_keystate:1; 866 bypass_keystate:1,
868 unsigned char chstat:1, 867#ifdef CURSOR_BLINK
869 lost_multi:1,
870 multi_byte:1,
871 hidden_cursor:1, 868 hidden_cursor:1,
869#endif
870#ifdef POINTER_BLANK
872 hidden_pointer:1, 871 hidden_pointer:1,
872#endif
873 parsed_geometry:1; 873 parsed_geometry:1,
874#else 874 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 875
901 unsigned char refresh_type, 876 unsigned char refresh_type,
902#ifdef UTMP_SUPPORT 877#ifdef UTMP_SUPPORT
903 next_utmp_action, 878 next_utmp_action,
904#endif 879#endif
956 currmaxcol, 931 currmaxcol,
957#ifdef MENUBAR 932#ifdef MENUBAR
958 menu_readonly, /* okay to alter menu? */ 933 menu_readonly, /* okay to alter menu? */
959 Arrows_x, 934 Arrows_x,
960#endif 935#endif
961#if (MENUBAR_MAX > 1) 936#if MENUBAR_MAX > 1
962 Nbars, 937 Nbars,
963#endif 938#endif
964 window_vt_x, 939 window_vt_x,
965 window_vt_y, 940 window_vt_y,
966 window_sb_x, 941 window_sb_x,
1089 struct timeval lastcursorchange; 1064 struct timeval lastcursorchange;
1090#endif 1065#endif
1091#ifdef POINTER_BLANK 1066#ifdef POINTER_BLANK
1092 struct timeval lastmotion; 1067 struct timeval lastmotion;
1093#endif 1068#endif
1094 struct timeval timeout[NUM_TIMEOUTS];
1095 1069
1096/* these three don't need to be kept but do so to placate some mem checkers */ 1070/* these three don't need to be kept but do so to placate some mem checkers */
1097 char *env_windowid; /* environmental variable WINDOWID */ 1071 char *env_windowid; /* environmental variable WINDOWID */
1098 char *env_display; /* environmental variable DISPLAY */ 1072 char *env_display; /* environmental variable DISPLAY */
1099 char *env_term; /* environmental variable TERM */ 1073 char *env_term; /* environmental variable TERM */
1111/* command input buffering */ 1085/* command input buffering */
1112 unsigned char *cmdbuf_ptr, *cmdbuf_endp; 1086 unsigned char *cmdbuf_ptr, *cmdbuf_endp;
1113 unsigned char cmdbuf_base[BUFSIZ]; 1087 unsigned char cmdbuf_base[BUFSIZ];
1114 unsigned char kbuf[KBUFSZ]; 1088 unsigned char kbuf[KBUFSZ];
1115 1089
1090 void paste (const unsigned char *data, unsigned int len);
1091
1092 void flush ();
1093
1094 void check_cb (check_watcher &w); check_watcher check_ev;
1116 void destroy_cb (time_watcher &w); time_watcher destroy_ev; 1095 void destroy_cb (time_watcher &w); time_watcher destroy_ev;
1117 1096
1118 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; 1097 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; 1098 void x_cb (io_watcher &w, short revents); io_watcher x_ev;
1099
1100 void incr_cb (time_watcher &w); time_watcher incr_ev;
1120 1101
1121#ifdef CURSOR_BLINK 1102#ifdef CURSOR_BLINK
1122 void blink_cb (time_watcher &w); time_watcher blink_ev; 1103 void blink_cb (time_watcher &w); time_watcher blink_ev;
1123#endif 1104#endif
1124 1105
1129#endif 1110#endif
1130 1111
1131 void tt_printf (const char *fmt,...); 1112 void tt_printf (const char *fmt,...);
1132 void tt_write (const unsigned char *data, unsigned int len); 1113 void tt_write (const unsigned char *data, unsigned int len);
1133 1114
1134 void flush (); 1115 void tt_winch ();
1135 1116
1136 rxvt_term (); 1117 rxvt_term ();
1137 ~rxvt_term (); 1118 ~rxvt_term ();
1138 void destroy (); 1119 void destroy ();
1139 1120

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines