… | |
… | |
10 | #include <X11/cursorfont.h> |
10 | #include <X11/cursorfont.h> |
11 | #include <X11/keysym.h> |
11 | #include <X11/keysym.h> |
12 | #include <X11/keysymdef.h> |
12 | #include <X11/keysymdef.h> |
13 | #include <X11/Xatom.h> |
13 | #include <X11/Xatom.h> |
14 | #if ENABLE_FRILLS |
14 | #if ENABLE_FRILLS |
15 | #include <X11/Xmd.h> |
15 | # include <X11/Xmd.h> |
16 | #endif |
16 | #endif |
17 | |
17 | |
18 | #include "encoding.h" |
18 | #include "encoding.h" |
19 | #include "rxvtfont.h" |
19 | #include "rxvtfont.h" |
20 | #include "rxvttoolkit.h" |
20 | #include "rxvttoolkit.h" |
… | |
… | |
80 | /* |
80 | /* |
81 | ***************************************************************************** |
81 | ***************************************************************************** |
82 | * PROTOTYPES |
82 | * PROTOTYPES |
83 | ***************************************************************************** |
83 | ***************************************************************************** |
84 | */ |
84 | */ |
|
|
85 | // main.C |
85 | RETSIGTYPE rxvt_Child_signal (int sig); |
86 | RETSIGTYPE rxvt_Child_signal (int sig); |
86 | RETSIGTYPE rxvt_Exit_signal (int sig); |
87 | RETSIGTYPE rxvt_Exit_signal (int sig); |
87 | void rxvt_clean_exit (); |
88 | void rxvt_clean_exit (); |
88 | void * rxvt_malloc (size_t size); |
89 | void * rxvt_malloc (size_t size); |
89 | void * rxvt_calloc (size_t number, size_t size); |
90 | void * rxvt_calloc (size_t number, size_t size); |
90 | void * rxvt_realloc (void *ptr, size_t size); |
91 | void * rxvt_realloc (void *ptr, size_t size); |
|
|
92 | void rxvt_privileges (rxvt_privaction action); |
|
|
93 | |
|
|
94 | // util.C |
91 | char * rxvt_wcstombs (const wchar_t *str, int len); |
95 | char * rxvt_wcstombs (const wchar_t *str, int len = -1); |
|
|
96 | wchar_t * rxvt_mbstowcs (const char *str, int len = -1); |
|
|
97 | char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); |
|
|
98 | wchar_t * rxvt_utf8towcs (const char *str, int len = -1); |
92 | char * rxvt_strdup (const char *str); |
99 | char * rxvt_strdup (const char *str); |
|
|
100 | |
|
|
101 | // misc.C |
93 | char * rxvt_r_basename (const char *str); |
102 | char * rxvt_r_basename (const char *str); |
94 | void rxvt_vlog (const char *fmt, va_list arg_ptr); |
103 | void rxvt_vlog (const char *fmt, va_list arg_ptr); |
95 | void rxvt_log (const char *fmt,...); |
104 | void rxvt_log (const char *fmt,...); |
96 | void rxvt_warn (const char *fmt,...); |
105 | void rxvt_warn (const char *fmt,...); |
97 | void rxvt_fatal (const char *fmt,...); |
106 | void rxvt_fatal (const char *fmt,...); |
… | |
… | |
104 | void rxvt_freecommastring (char **cs); |
113 | void rxvt_freecommastring (char **cs); |
105 | char * rxvt_File_find (const char *file, const char *ext, const char *path); |
114 | char * rxvt_File_find (const char *file, const char *ext, const char *path); |
106 | void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); |
115 | void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); |
107 | void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); |
116 | void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); |
108 | |
117 | |
109 | void rxvt_privileges (rxvt_privaction action); |
|
|
110 | |
|
|
111 | /* |
118 | /* |
112 | ***************************************************************************** |
119 | ***************************************************************************** |
113 | * STRUCTURES AND TYPEDEFS |
120 | * STRUCTURES AND TYPEDEFS |
114 | ***************************************************************************** |
121 | ***************************************************************************** |
115 | */ |
122 | */ |
… | |
… | |
132 | # undef KEEP_SCROLLCOLOR |
139 | # undef KEEP_SCROLLCOLOR |
133 | #endif |
140 | #endif |
134 | |
141 | |
135 | #ifdef XPM_BACKGROUND |
142 | #ifdef XPM_BACKGROUND |
136 | typedef struct { |
143 | typedef struct { |
137 | short w, h, x, y; |
144 | short w, h, x, y; |
138 | Pixmap pixmap; |
145 | Pixmap pixmap; |
139 | } bgPixmap_t; |
146 | } bgPixmap_t; |
140 | #endif |
147 | #endif |
141 | |
148 | |
142 | /* |
149 | /* |
143 | * the 'essential' information for reporting Mouse Events |
150 | * the 'essential' information for reporting Mouse Events |
144 | * pared down from XButtonEvent |
151 | * pared down from XButtonEvent |
145 | */ |
152 | */ |
146 | struct mouse_event { |
153 | struct mouse_event { |
147 | int clicks; |
154 | int clicks; |
148 | Time time; /* milliseconds */ |
155 | Time time; /* milliseconds */ |
149 | unsigned int state; /* key or button mask */ |
156 | unsigned int state; /* key or button mask */ |
150 | unsigned int button; /* detail */ |
157 | unsigned int button; /* detail */ |
151 | }; |
158 | }; |
152 | |
159 | |
153 | #define MAX_IT(current, other) if ((other) > (current)) (current) = (other) |
160 | #define MAX_IT(current, other) if ((other) > (current)) (current) = (other) |
154 | #define MIN_IT(current, other) if ((other) < (current)) (current) = (other) |
161 | #define MIN_IT(current, other) if ((other) < (current)) (current) = (other) |
155 | #define SWAP_IT(one, two, typeof) \ |
162 | #define SWAP_IT(one, two, typeof) \ |
… | |
… | |
497 | Color_BD, |
504 | Color_BD, |
498 | Color_IT, |
505 | Color_IT, |
499 | Color_UL, |
506 | Color_UL, |
500 | Color_RV, |
507 | Color_RV, |
501 | #endif |
508 | #endif |
|
|
509 | #if ENABLE_FRILLS |
|
|
510 | Color_underline, |
|
|
511 | #endif |
502 | #ifdef OPTION_HC |
512 | #ifdef OPTION_HC |
503 | Color_HC, |
513 | Color_HC, |
504 | #endif |
514 | #endif |
505 | #ifdef KEEP_SCROLLCOLOR |
515 | #ifdef KEEP_SCROLLCOLOR |
506 | Color_scroll, |
516 | Color_scroll, |
… | |
… | |
557 | #ifdef HAVE_SCROLLBARS |
567 | #ifdef HAVE_SCROLLBARS |
558 | Rs_scrollBar, |
568 | Rs_scrollBar, |
559 | Rs_scrollBar_right, |
569 | Rs_scrollBar_right, |
560 | Rs_scrollBar_floating, |
570 | Rs_scrollBar_floating, |
561 | Rs_scrollBar_align, |
571 | Rs_scrollBar_align, |
562 | #endif |
|
|
563 | Rs_scrollstyle, /* Rs_scrollBar_style */ |
572 | Rs_scrollstyle, /* Rs_scrollBar_style */ |
|
|
573 | Rs_scrollBar_thickness, |
|
|
574 | #endif |
564 | Rs_scrollTtyOutput, |
575 | Rs_scrollTtyOutput, |
565 | Rs_scrollTtyKeypress, |
576 | Rs_scrollTtyKeypress, |
566 | Rs_scrollWithBuffer, |
577 | Rs_scrollWithBuffer, |
567 | Rs_saveLines, |
578 | Rs_saveLines, |
568 | Rs_utmpInhibit, |
579 | Rs_utmpInhibit, |
… | |
… | |
596 | #endif |
607 | #endif |
597 | #if ENABLE_FRILLS |
608 | #if ENABLE_FRILLS |
598 | Rs_ext_bwidth, |
609 | Rs_ext_bwidth, |
599 | Rs_int_bwidth, |
610 | Rs_int_bwidth, |
600 | Rs_borderLess, |
611 | Rs_borderLess, |
601 | #endif |
|
|
602 | Rs_scrollBar_thickness, |
|
|
603 | #ifndef NO_LINESPACE |
|
|
604 | Rs_lineSpace, |
612 | Rs_lineSpace, |
|
|
613 | Rs_embed, |
|
|
614 | Rs_pty_fd, |
605 | #endif |
615 | #endif |
606 | Rs_cutchars, |
616 | Rs_cutchars, |
607 | Rs_modifier, |
617 | Rs_modifier, |
608 | Rs_answerbackstring, |
618 | Rs_answerbackstring, |
609 | Rs_tripleclickwords, |
619 | Rs_tripleclickwords, |
610 | Rs_insecure, |
620 | Rs_insecure, |
611 | Rs_cursorBlink, |
621 | Rs_cursorBlink, |
612 | Rs_pointerBlank, |
622 | Rs_pointerBlank, |
613 | Rs_pointerBlankDelay, |
623 | Rs_pointerBlankDelay, |
614 | Rs_imLocale, |
624 | Rs_imLocale, |
|
|
625 | Rs_imFont, |
615 | Rs_pastableTabs, |
626 | Rs_pastableTabs, |
616 | #ifndef NO_SECONDARY_SCREEN |
627 | #ifndef NO_SECONDARY_SCREEN |
617 | Rs_secondaryScreen, |
628 | Rs_secondaryScreen, |
618 | Rs_secondaryScroll, |
629 | Rs_secondaryScroll, |
619 | #endif |
630 | #endif |
… | |
… | |
635 | XA_TARGETS, |
646 | XA_TARGETS, |
636 | XA_TIMESTAMP, |
647 | XA_TIMESTAMP, |
637 | XA_VT_SELECTION, |
648 | XA_VT_SELECTION, |
638 | XA_INCR, |
649 | XA_INCR, |
639 | XA_WMDELETEWINDOW, |
650 | XA_WMDELETEWINDOW, |
|
|
651 | XA_CLIPBOARD, |
|
|
652 | #if ENABLE_FRILLS |
|
|
653 | XA_NET_WM_PID, |
|
|
654 | XA_MOTIF_WM_HINTS, |
|
|
655 | XA_NET_WM_NAME, |
|
|
656 | XA_NET_WM_ICON_NAME, |
|
|
657 | #endif |
|
|
658 | #if USE_XIM |
|
|
659 | XA_WM_LOCALE_NAME, |
|
|
660 | #endif |
640 | #ifdef TRANSPARENT |
661 | #if TRANSPARENT |
641 | XA_XROOTPMAPID, |
662 | XA_XROOTPMAP_ID, |
642 | XA_XSETROOTID, |
663 | XA_ESETROOT_PMAP_ID, |
643 | #endif |
664 | #endif |
644 | #ifdef OFFIX_DND /* OffiX Dnd (drag 'n' drop) support */ |
665 | #if OFFIX_DND /* OffiX Dnd (drag 'n' drop) support */ |
645 | XA_DNDPROTOCOL, |
666 | XA_DNDPROTOCOL, |
646 | XA_DNDSELECTION, |
667 | XA_DNDSELECTION, |
647 | #endif /* OFFIX_DND */ |
668 | #endif |
648 | XA_CLIPBOARD, |
|
|
649 | NUM_XA |
669 | NUM_XA |
650 | }; |
670 | }; |
651 | |
671 | |
652 | /* DEC private modes */ |
672 | /* DEC private modes */ |
653 | #define PrivMode_132 (1UL<<0) |
673 | #define PrivMode_132 (1UL<<0) |
… | |
… | |
680 | priv_modes |= (bit); \ |
700 | priv_modes |= (bit); \ |
681 | else \ |
701 | else \ |
682 | priv_modes &= ~(bit) |
702 | priv_modes &= ~(bit) |
683 | |
703 | |
684 | #ifdef ALLOW_132_MODE |
704 | #ifdef ALLOW_132_MODE |
685 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
705 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
686 | #else |
706 | #else |
687 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
707 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
688 | #endif |
708 | #endif |
689 | |
709 | |
690 | // do not change these constants lightly, there are many interdependencies |
710 | // do not change these constants lightly, there are many interdependencies |
691 | #define IMBUFSIZ 128 // input modifier buffer sizes |
711 | #define IMBUFSIZ 128 // input modifier buffer sizes |
692 | #define KBUFSZ 512 // size of keyboard mapping buffer |
712 | #define KBUFSZ 512 // size of keyboard mapping buffer |
… | |
… | |
743 | #define strdup(x) strdup((const char *)(x)) |
763 | #define strdup(x) strdup((const char *)(x)) |
744 | #define strlen(x) strlen((const char *)(x)) |
764 | #define strlen(x) strlen((const char *)(x)) |
745 | #define strchr(x, y) strchr((const char *)(x), (int)(y)) |
765 | #define strchr(x, y) strchr((const char *)(x), (int)(y)) |
746 | #define strrchr(x, y) strrchr((const char *)(x), (int)(y)) |
766 | #define strrchr(x, y) strrchr((const char *)(x), (int)(y)) |
747 | |
767 | |
|
|
768 | #define dDisp Display *disp = display->display |
|
|
769 | |
748 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
770 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
749 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
771 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
750 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
772 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
751 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)TermWin.fwidth) |
773 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)TermWin.fwidth) |
752 | #define Pixel2Height(y) ((int32_t)(y) / (int32_t)TermWin.fheight) |
774 | #define Pixel2Height(y) ((int32_t)(y) / (int32_t)TermWin.fheight) |
… | |
… | |
850 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
872 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
851 | #else |
873 | #else |
852 | # define XPMClearArea(a, b, c, d, e, f, g) |
874 | # define XPMClearArea(a, b, c, d, e, f, g) |
853 | #endif |
875 | #endif |
854 | |
876 | |
855 | #ifndef STRICT_FONT_CHECKING |
|
|
856 | # define rxvt_get_fontwidest(font) ((font)->max_bounds.width) |
|
|
857 | #endif |
|
|
858 | |
|
|
859 | #define rxvt_Gr_ButtonPress(x,y) rxvt_Gr_ButtonReport (R, 'P',(x),(y)) |
|
|
860 | #define rxvt_Gr_ButtonRelease(x,y) rxvt_Gr_ButtonReport (R, 'R',(x),(y)) |
|
|
861 | |
|
|
862 | #ifdef UTMP_SUPPORT |
877 | #ifdef UTMP_SUPPORT |
863 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
878 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
864 | # undef HAVE_UTMPX_H |
879 | # undef HAVE_UTMPX_H |
865 | # undef HAVE_STRUCT_UTMPX |
880 | # undef HAVE_STRUCT_UTMPX |
866 | # endif |
881 | # endif |
… | |
… | |
938 | |
953 | |
939 | operator mbstate_t *() { return &mbs; } |
954 | operator mbstate_t *() { return &mbs; } |
940 | void reset () { memset (&mbs, 0, sizeof (mbs)); } |
955 | void reset () { memset (&mbs, 0, sizeof (mbs)); } |
941 | mbstate () { reset (); } |
956 | mbstate () { reset (); } |
942 | }; |
957 | }; |
|
|
958 | |
|
|
959 | #define UNICODE_MASK 0x1fffffUL |
943 | |
960 | |
944 | #if UNICODE3 |
961 | #if UNICODE3 |
945 | # define COMPOSE_LO 0x40000000UL |
962 | # define COMPOSE_LO 0x40000000UL |
946 | # define COMPOSE_HI 0x400fffffUL |
963 | # define COMPOSE_HI 0x400fffffUL |
947 | # define IS_COMPOSE(n) ((int32_t)(n) >= COMPOSE_LO) |
964 | # define IS_COMPOSE(n) ((int32_t)(n) >= COMPOSE_LO) |
… | |
… | |
977 | |
994 | |
978 | extern class rxvt_composite_vec rxvt_composite; |
995 | extern class rxvt_composite_vec rxvt_composite; |
979 | #endif |
996 | #endif |
980 | |
997 | |
981 | |
998 | |
|
|
999 | #ifdef KEYSYM_RESOURCE |
|
|
1000 | class keyboard_manager; |
|
|
1001 | #endif |
|
|
1002 | |
982 | struct rxvt_term : zero_initialized, rxvt_vars { |
1003 | struct rxvt_term : zero_initialized, rxvt_vars { |
983 | log_callback *log_hook; // log error messages through this hook, if != 0 |
1004 | log_callback *log_hook; // log error messages through this hook, if != 0 |
984 | |
1005 | |
985 | struct mbstate mbstate; // current input multibyte state |
1006 | struct mbstate mbstate; // current input multibyte state |
986 | |
1007 | |
… | |
… | |
1003 | hidden_text:1, |
1024 | hidden_text:1, |
1004 | #endif |
1025 | #endif |
1005 | #ifdef POINTER_BLANK |
1026 | #ifdef POINTER_BLANK |
1006 | hidden_pointer:1, |
1027 | hidden_pointer:1, |
1007 | #endif |
1028 | #endif |
1008 | // enc_utf8:1, /* wether terminal reads/writes utf-8 */ |
1029 | enc_utf8:1, /* wether locale uses utf-8 */ |
1009 | seen_input:1, /* wether we have seen some program output yet */ |
1030 | seen_input:1, /* wether we have seen some program output yet */ |
1010 | seen_resize:1, /* wether we had a resize event */ |
1031 | seen_resize:1, /* wether we had a resize event */ |
1011 | parsed_geometry:1; |
1032 | parsed_geometry:1; |
1012 | |
1033 | |
1013 | unsigned char refresh_type, |
1034 | unsigned char refresh_type, |
… | |
… | |
1059 | # ifdef POINTER_BLANK |
1080 | # ifdef POINTER_BLANK |
1060 | pointerBlankDelay, |
1081 | pointerBlankDelay, |
1061 | # endif |
1082 | # endif |
1062 | allowedxerror; |
1083 | allowedxerror; |
1063 | /* ---------- */ |
1084 | /* ---------- */ |
1064 | unsigned int ModMetaMask, |
1085 | unsigned int ModLevel3Mask, |
|
|
1086 | ModMetaMask, |
1065 | ModNumLockMask; |
1087 | ModNumLockMask; |
1066 | int old_width, /* last used width in screen resize */ |
1088 | int old_width, /* last used width in screen resize */ |
1067 | old_height; /* last used height in screen resize */ |
1089 | old_height; /* last used height in screen resize */ |
1068 | unsigned long priv_modes, |
1090 | unsigned long priv_modes, |
1069 | SavedModes; |
1091 | SavedModes; |
… | |
… | |
1099 | #endif |
1121 | #endif |
1100 | /* ---------- */ |
1122 | /* ---------- */ |
1101 | Time selection_time, |
1123 | Time selection_time, |
1102 | selection_request_time; |
1124 | selection_request_time; |
1103 | pid_t cmd_pid; /* process id of child */ |
1125 | pid_t cmd_pid; /* process id of child */ |
|
|
1126 | char * incr_buf; |
|
|
1127 | size_t incr_buf_size, incr_buf_fill; |
1104 | /* ---------- */ |
1128 | /* ---------- */ |
1105 | Cursor leftptr_cursor; |
1129 | Cursor leftptr_cursor; |
1106 | #ifdef POINTER_BLANK |
|
|
1107 | Cursor blank_cursor; |
|
|
1108 | #endif |
|
|
1109 | /* ---------- */ |
1130 | /* ---------- */ |
1110 | #ifndef NO_BACKSPACE_KEY |
1131 | #ifndef NO_BACKSPACE_KEY |
1111 | const char *key_backspace; |
1132 | const char *key_backspace; |
1112 | #endif |
1133 | #endif |
1113 | #ifndef NO_DELETE_KEY |
1134 | #ifndef NO_DELETE_KEY |
… | |
… | |
1167 | char *env_windowid; /* environmental variable WINDOWID */ |
1188 | char *env_windowid; /* environmental variable WINDOWID */ |
1168 | char *env_display; /* environmental variable DISPLAY */ |
1189 | char *env_display; /* environmental variable DISPLAY */ |
1169 | char *env_term; /* environmental variable TERM */ |
1190 | char *env_term; /* environmental variable TERM */ |
1170 | char *env_colorfgbg; |
1191 | char *env_colorfgbg; |
1171 | char *locale; |
1192 | char *locale; |
1172 | #if 0 |
|
|
1173 | char *codeset; |
|
|
1174 | #endif |
|
|
1175 | char charsets[4]; |
1193 | char charsets[4]; |
1176 | unsigned char *v_buffer; /* pointer to physical buffer */ |
1194 | unsigned char *v_buffer; /* pointer to physical buffer */ |
1177 | unsigned int v_buflen; /* size of area to write */ |
1195 | unsigned int v_buflen; /* size of area to write */ |
1178 | stringvec *argv, *envv; /* if != 0, will be freed on destroy time */ |
1196 | stringvec *argv, *envv; /* if != 0, will be freed on destroy time */ |
|
|
1197 | |
1179 | #ifdef KEYSYM_RESOURCE |
1198 | #ifdef KEYSYM_RESOURCE |
1180 | const unsigned char *Keysym_map[256]; |
1199 | keyboard_manager *keyboard; |
1181 | #endif |
1200 | #endif |
|
|
1201 | |
1182 | const char *rs[NUM_RESOURCES]; |
1202 | const char *rs[NUM_RESOURCES]; |
1183 | /* command input buffering */ |
1203 | /* command input buffering */ |
1184 | unsigned char *cmdbuf_ptr, *cmdbuf_endp; |
1204 | unsigned char *cmdbuf_ptr, *cmdbuf_endp; |
1185 | unsigned char cmdbuf_base[CBUFSIZ]; |
1205 | unsigned char cmdbuf_base[CBUFSIZ]; |
1186 | |
1206 | |
… | |
… | |
1198 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE); |
1218 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE); |
1199 | void iso14755_54 (int x, int y); |
1219 | void iso14755_54 (int x, int y); |
1200 | # endif |
1220 | # endif |
1201 | #endif |
1221 | #endif |
1202 | |
1222 | |
|
|
1223 | // modifies first argument(!) |
1203 | void paste (const unsigned char *data, unsigned int len); |
1224 | void paste (unsigned char *data, unsigned int len); |
1204 | |
1225 | |
1205 | void flush (); |
1226 | void flush (); |
1206 | |
1227 | |
1207 | #if TRANSPARENT |
1228 | #if TRANSPARENT |
1208 | void rootwin_cb (XEvent &xev); |
1229 | void rootwin_cb (XEvent &xev); |
1209 | xevent_watcher rootwin_ev; |
1230 | xevent_watcher rootwin_ev; |
1210 | #endif |
1231 | #endif |
1211 | |
1232 | |
1212 | |
1233 | |
1213 | void sig_term (sig_watcher &w); sig_watcher sw_term; |
1234 | void sig_term (sig_watcher &w); sig_watcher sw_term, sw_int; |
1214 | void sig_chld (sig_watcher &w); sig_watcher sw_chld; |
1235 | void sig_chld (sig_watcher &w); sig_watcher sw_chld; |
1215 | |
1236 | |
1216 | void x_cb (XEvent &xev); |
1237 | void x_cb (XEvent &xev); |
1217 | xevent_watcher termwin_ev; |
1238 | xevent_watcher termwin_ev; |
1218 | xevent_watcher vt_ev; |
1239 | xevent_watcher vt_ev; |
… | |
… | |
1254 | #endif |
1275 | #endif |
1255 | void pointer_unblank (); |
1276 | void pointer_unblank (); |
1256 | |
1277 | |
1257 | void tt_printf (const char *fmt,...); |
1278 | void tt_printf (const char *fmt,...); |
1258 | void tt_write (const unsigned char *data, unsigned int len); |
1279 | void tt_write (const unsigned char *data, unsigned int len); |
|
|
1280 | void pty_write (); |
1259 | |
1281 | |
1260 | void tt_winch (); |
1282 | void tt_winch (); |
1261 | |
1283 | |
1262 | rxvt_term (); |
1284 | rxvt_term (); |
1263 | ~rxvt_term (); |
1285 | ~rxvt_term (); |
1264 | void destroy (); |
1286 | void destroy (); |
|
|
1287 | void emergency_cleanup (); |
1265 | |
1288 | |
1266 | bool init (int argc, const char *const *argv); |
1289 | bool init (int argc, const char *const *argv); |
1267 | bool init_vars (); |
1290 | bool init_vars (); |
1268 | |
1291 | |
1269 | bool pty_fill (); |
1292 | bool pty_fill (); |
… | |
… | |
1352 | void makeutent (const char *pty, const char *hostname); |
1375 | void makeutent (const char *pty, const char *hostname); |
1353 | void cleanutent (); |
1376 | void cleanutent (); |
1354 | // main.C |
1377 | // main.C |
1355 | void privileged_utmp (rxvt_privaction action); |
1378 | void privileged_utmp (rxvt_privaction action); |
1356 | bool set_fonts (); |
1379 | bool set_fonts (); |
|
|
1380 | void set_string_property (Atom prop, const char *str, int len = -1); |
|
|
1381 | void set_utf8_property (Atom prop, const char *str, int len = -1); |
1357 | void set_title (const char *str); |
1382 | void set_title (const char *str); |
1358 | void set_icon_name (const char *str); |
1383 | void set_icon_name (const char *str); |
1359 | void set_window_color (int idx, const char *color); |
1384 | void set_window_color (int idx, const char *color); |
1360 | void set_colorfgbg (); |
1385 | void set_colorfgbg (); |
1361 | int rXParseAllocColor (rxvt_color * screen_in_out, const char *colour); |
1386 | int rXParseAllocColor (rxvt_color * screen_in_out, const char *colour); |
… | |
… | |
1446 | void scr_bell (); |
1471 | void scr_bell (); |
1447 | void scr_printscreen (int fullhist); |
1472 | void scr_printscreen (int fullhist); |
1448 | void scr_reverse_selection (); |
1473 | void scr_reverse_selection (); |
1449 | void scr_dump (int fd); |
1474 | void scr_dump (int fd); |
1450 | void selection_check (int check_more); |
1475 | void selection_check (int check_more); |
1451 | int selection_paste (Window win, Atom prop, bool delete_prop); |
1476 | void selection_paste (Window win, Atom prop, bool delete_prop); |
1452 | void selection_property (Window win, Atom prop); |
1477 | void selection_property (Window win, Atom prop); |
1453 | void selection_request (Time tm, int x, int y); |
1478 | void selection_request (Time tm, int x, int y); |
1454 | int selection_request_other (Atom target, int selnum); |
1479 | int selection_request_other (Atom target, int selnum); |
1455 | void selection_clear (); |
1480 | void selection_clear (); |
1456 | void selection_make (Time tm); |
1481 | void selection_make (Time tm); |
… | |
… | |
1491 | |
1516 | |
1492 | // xdefaults.C |
1517 | // xdefaults.C |
1493 | void get_options (int argc, const char *const *argv); |
1518 | void get_options (int argc, const char *const *argv); |
1494 | int parse_keysym (const char *str, const char *arg); |
1519 | int parse_keysym (const char *str, const char *arg); |
1495 | void get_xdefaults (FILE *stream, const char *name); |
1520 | void get_xdefaults (FILE *stream, const char *name); |
1496 | void extract_resources (Display *display, const char *name); |
1521 | void extract_resources (); |
1497 | // xpm.C |
1522 | // xpm.C |
1498 | int scale_pixmap (const char *geom); |
1523 | int scale_pixmap (const char *geom); |
1499 | void resize_pixmap (); |
1524 | void resize_pixmap (); |
1500 | Pixmap set_bgPixmap (const char *file); |
1525 | Pixmap set_bgPixmap (const char *file); |
1501 | }; |
1526 | }; |