… | |
… | |
550 | |
550 | |
551 | // do not change these constants lightly, there are many interdependencies |
551 | // do not change these constants lightly, there are many interdependencies |
552 | #define IMBUFSIZ 128 // input modifier buffer sizes |
552 | #define IMBUFSIZ 128 // input modifier buffer sizes |
553 | #define KBUFSZ 512 // size of keyboard mapping buffer |
553 | #define KBUFSZ 512 // size of keyboard mapping buffer |
554 | #define CBUFSIZ 2048 // size of command buffer |
554 | #define CBUFSIZ 2048 // size of command buffer |
|
|
555 | #define CBUFCNT 8 // never call pty_fill/cmd_parse more than this often in a row |
555 | #define UBUFSIZ 2048 // character buffer |
556 | #define UBUFSIZ 2048 // character buffer |
556 | |
557 | |
557 | #if ENABLE_FRILLS |
558 | #if ENABLE_FRILLS |
558 | # include <X11/Xmd.h> |
559 | # include <X11/Xmd.h> |
559 | typedef struct _mwmhints { |
560 | typedef struct _mwmhints { |
… | |
… | |
943 | |
944 | |
944 | unsigned char want_refresh:1, |
945 | unsigned char want_refresh:1, |
945 | current_screen:1, /* primary or secondary */ |
946 | current_screen:1, /* primary or secondary */ |
946 | num_scr_allow:1, |
947 | num_scr_allow:1, |
947 | bypass_keystate:1, |
948 | bypass_keystate:1, |
|
|
949 | #ifdef ENABLE_FRILLS |
|
|
950 | urgency_hint:1, |
|
|
951 | #endif |
948 | #ifdef CURSOR_BLINK |
952 | #ifdef CURSOR_BLINK |
949 | hidden_cursor:1, |
953 | hidden_cursor:1, |
950 | #endif |
954 | #endif |
951 | #ifdef TEXT_BLINK |
955 | #ifdef TEXT_BLINK |
952 | hidden_text:1, |
956 | hidden_text:1, |
… | |
… | |
1023 | bgPixmap_t bgPixmap; |
1027 | bgPixmap_t bgPixmap; |
1024 | #endif |
1028 | #endif |
1025 | #ifdef HAVE_AFTERIMAGE |
1029 | #ifdef HAVE_AFTERIMAGE |
1026 | ASVisual *asv; |
1030 | ASVisual *asv; |
1027 | ASImageManager *asimman; |
1031 | ASImageManager *asimman; |
|
|
1032 | |
|
|
1033 | void init_asv () |
|
|
1034 | { |
|
|
1035 | if (!asv) |
|
|
1036 | asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); |
|
|
1037 | } |
1028 | #endif |
1038 | #endif |
1029 | |
1039 | |
1030 | #if ENABLE_OVERLAY |
1040 | #if ENABLE_OVERLAY |
1031 | int ov_x, ov_y, ov_w, ov_h; // overlay dimensions |
1041 | int ov_x, ov_y, ov_w, ov_h; // overlay dimensions |
1032 | text_t **ov_text; |
1042 | text_t **ov_text; |
… | |
… | |
1189 | wchar_t next_char () NOTHROW; |
1199 | wchar_t next_char () NOTHROW; |
1190 | wchar_t cmd_getc () THROW ((class out_of_input)); |
1200 | wchar_t cmd_getc () THROW ((class out_of_input)); |
1191 | uint32_t next_octet () NOTHROW; |
1201 | uint32_t next_octet () NOTHROW; |
1192 | uint32_t cmd_get8 () THROW ((class out_of_input)); |
1202 | uint32_t cmd_get8 () THROW ((class out_of_input)); |
1193 | |
1203 | |
1194 | bool cmd_parse (); |
1204 | void cmd_parse (); |
1195 | void mouse_report (XButtonEvent &ev); |
1205 | void mouse_report (XButtonEvent &ev); |
1196 | void button_press (XButtonEvent &ev); |
1206 | void button_press (XButtonEvent &ev); |
1197 | void button_release (XButtonEvent &ev); |
1207 | void button_release (XButtonEvent &ev); |
1198 | void focus_in (); |
1208 | void focus_in (); |
1199 | void focus_out (); |
1209 | void focus_out (); |
|
|
1210 | void set_urgency (bool enable); |
1200 | void update_fade_color (unsigned int idx); |
1211 | void update_fade_color (unsigned int idx); |
1201 | #ifdef PRINTPIPE |
1212 | #ifdef PRINTPIPE |
1202 | FILE *popen_printer (); |
1213 | FILE *popen_printer (); |
1203 | int pclose_printer (FILE *stream); |
1214 | int pclose_printer (FILE *stream); |
1204 | #endif |
1215 | #endif |
… | |
… | |
1342 | |
1353 | |
1343 | // modifies first argument(!) |
1354 | // modifies first argument(!) |
1344 | void paste (char *data, unsigned int len) NOTHROW; |
1355 | void paste (char *data, unsigned int len) NOTHROW; |
1345 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; |
1356 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; |
1346 | void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; |
1357 | void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; |
|
|
1358 | void scr_kill_char (line_t &l, int col) const NOTHROW; |
1347 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
1359 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
1348 | void scr_reset (); |
1360 | void scr_reset (); |
1349 | void scr_release () NOTHROW; |
1361 | void scr_release () NOTHROW; |
1350 | void scr_clear (bool really = false) NOTHROW; |
1362 | void scr_clear (bool really = false) NOTHROW; |
1351 | void scr_refresh () NOTHROW; |
1363 | void scr_refresh () NOTHROW; |