1 | /* |
1 | /* |
2 | * $Id: rxvt.h,v 1.9 2003/11/27 16:49:45 pcg Exp $ |
2 | * $Id: rxvt.h,v 1.10 2003/12/02 21:49:46 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 | |
… | |
… | |
854 | } |
854 | } |
855 | }; |
855 | }; |
856 | |
856 | |
857 | struct rxvt_term : rxvt_vars { |
857 | struct rxvt_term : rxvt_vars { |
858 | struct mbstate mbstate; |
858 | struct mbstate mbstate; |
859 | #ifdef __GNUC__ |
859 | |
860 | unsigned char want_refresh:1, |
860 | unsigned char want_refresh:1, |
861 | want_full_refresh:1, |
861 | #ifdef TRANSPARENT |
862 | am_transparent:1, |
862 | want_full_refresh:1, /* awaiting full screen refresh */ |
863 | am_pixmap_trans:1, |
863 | #endif |
864 | current_screen:1, |
864 | #if defined(XPM_BACKGROUND) || defined(TRANSPARENT) |
865 | hate_those_clicks:1, |
865 | am_transparent:1, /* is a transparent term */ |
|
|
866 | am_pixmap_trans:1, /* transparency w/known root pixmap */ |
|
|
867 | #endif |
|
|
868 | current_screen:1, /* primary or secondary */ |
|
|
869 | hate_those_clicks:1, /* a.k.a. keep mark position */ |
866 | num_scr_allow:1, |
870 | num_scr_allow:1, |
867 | bypass_keystate:1; |
871 | bypass_keystate:1, |
868 | unsigned char chstat:1, |
872 | #ifdef CURSOR_BLINK |
869 | lost_multi:1, |
|
|
870 | multi_byte:1, |
|
|
871 | hidden_cursor:1, |
873 | hidden_cursor:1, |
|
|
874 | #endif |
|
|
875 | #ifdef POINTER_BLANK |
872 | hidden_pointer:1, |
876 | hidden_pointer:1, |
|
|
877 | #endif |
873 | parsed_geometry:1; |
878 | parsed_geometry:1, |
874 | #else |
879 | 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 | |
880 | |
901 | unsigned char refresh_type, |
881 | unsigned char refresh_type, |
902 | #ifdef UTMP_SUPPORT |
882 | #ifdef UTMP_SUPPORT |
903 | next_utmp_action, |
883 | next_utmp_action, |
904 | #endif |
884 | #endif |
… | |
… | |
956 | currmaxcol, |
936 | currmaxcol, |
957 | #ifdef MENUBAR |
937 | #ifdef MENUBAR |
958 | menu_readonly, /* okay to alter menu? */ |
938 | menu_readonly, /* okay to alter menu? */ |
959 | Arrows_x, |
939 | Arrows_x, |
960 | #endif |
940 | #endif |
961 | #if (MENUBAR_MAX > 1) |
941 | #if MENUBAR_MAX > 1 |
962 | Nbars, |
942 | Nbars, |
963 | #endif |
943 | #endif |
964 | window_vt_x, |
944 | window_vt_x, |
965 | window_vt_y, |
945 | window_vt_y, |
966 | window_sb_x, |
946 | window_sb_x, |
… | |
… | |
1111 | /* command input buffering */ |
1091 | /* command input buffering */ |
1112 | unsigned char *cmdbuf_ptr, *cmdbuf_endp; |
1092 | unsigned char *cmdbuf_ptr, *cmdbuf_endp; |
1113 | unsigned char cmdbuf_base[BUFSIZ]; |
1093 | unsigned char cmdbuf_base[BUFSIZ]; |
1114 | unsigned char kbuf[KBUFSZ]; |
1094 | unsigned char kbuf[KBUFSZ]; |
1115 | |
1095 | |
|
|
1096 | void flush (); |
|
|
1097 | |
|
|
1098 | void check_cb (check_watcher &w); check_watcher check_ev; |
1116 | void destroy_cb (time_watcher &w); time_watcher destroy_ev; |
1099 | void destroy_cb (time_watcher &w); time_watcher destroy_ev; |
1117 | |
1100 | |
1118 | void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; |
1101 | 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; |
1102 | void x_cb (io_watcher &w, short revents); io_watcher x_ev; |
1120 | |
1103 | |
… | |
… | |
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 | |