… | |
… | |
337 | #define Sel_direct 0x00 |
337 | #define Sel_direct 0x00 |
338 | #define Sel_Primary 0x01 |
338 | #define Sel_Primary 0x01 |
339 | #define Sel_Secondary 0x02 |
339 | #define Sel_Secondary 0x02 |
340 | #define Sel_Clipboard 0x03 |
340 | #define Sel_Clipboard 0x03 |
341 | #define Sel_whereMask 0x0f |
341 | #define Sel_whereMask 0x0f |
342 | #define Sel_CompoundText 0x10 /* last request was Compound */ |
342 | #define Sel_CompoundText 0x10 /* last request was COMPOUND_TEXT */ |
|
|
343 | #define Sel_UTF8String 0x20 /* last request was UTF8_STRING */ |
343 | |
344 | |
344 | enum { |
345 | enum { |
345 | C0_NUL = 0x00, |
346 | C0_NUL = 0x00, |
346 | C0_SOH, C0_STX, C0_ETX, C0_EOT, C0_ENQ, C0_ACK, C0_BEL, |
347 | C0_SOH, C0_STX, C0_ETX, C0_EOT, C0_ENQ, C0_ACK, C0_BEL, |
347 | C0_BS , C0_HT , C0_LF , C0_VT , C0_FF , C0_CR , C0_SO , C0_SI , |
348 | C0_BS , C0_HT , C0_LF , C0_VT , C0_FF , C0_CR , C0_SO , C0_SI , |
… | |
… | |
542 | Rs_pointerBlankDelay, |
543 | Rs_pointerBlankDelay, |
543 | Rs_imLocale, |
544 | Rs_imLocale, |
544 | NUM_RESOURCES |
545 | NUM_RESOURCES |
545 | }; |
546 | }; |
546 | |
547 | |
|
|
548 | // see init.C:xa_named, which must be kept in sync |
547 | enum { |
549 | enum { |
|
|
550 | XA_TEXT = 0, |
548 | XA_COMPOUND_TEXT = 0, |
551 | XA_COMPOUND_TEXT, |
|
|
552 | XA_UTF8_STRING, |
549 | XA_MULTIPLE, |
553 | XA_MULTIPLE, |
550 | XA_TARGETS, |
554 | XA_TARGETS, |
551 | XA_TEXT, |
|
|
552 | XA_TIMESTAMP, |
555 | XA_TIMESTAMP, |
553 | XA_VT_SELECTION, |
556 | XA_VT_SELECTION, |
554 | XA_INCR, |
557 | XA_INCR, |
555 | XA_WMDELETEWINDOW, |
558 | XA_WMDELETEWINDOW, |
556 | #ifdef TRANSPARENT |
559 | #ifdef TRANSPARENT |
… | |
… | |
561 | XA_DNDSELECTION, |
564 | XA_DNDSELECTION, |
562 | #endif /* OFFIX_DND */ |
565 | #endif /* OFFIX_DND */ |
563 | XA_CLIPBOARD, |
566 | XA_CLIPBOARD, |
564 | NUM_XA |
567 | NUM_XA |
565 | }; |
568 | }; |
566 | |
|
|
567 | /* |
|
|
568 | * number of graphics points |
|
|
569 | * divisible by 2 (num lines) |
|
|
570 | * divisible by 4 (num rect) |
|
|
571 | */ |
|
|
572 | #define NGRX_PTS 1000 |
|
|
573 | |
569 | |
574 | /* DEC private modes */ |
570 | /* DEC private modes */ |
575 | #define PrivMode_132 (1LU<<0) |
571 | #define PrivMode_132 (1LU<<0) |
576 | #define PrivMode_132OK (1LU<<1) |
572 | #define PrivMode_132OK (1LU<<1) |
577 | #define PrivMode_rVideo (1LU<<2) |
573 | #define PrivMode_rVideo (1LU<<2) |
… | |
… | |
808 | #ifdef MENUBAR |
804 | #ifdef MENUBAR |
809 | # include "menubar.h" |
805 | # include "menubar.h" |
810 | #endif |
806 | #endif |
811 | |
807 | |
812 | #define BLINK_INTERVAL 0.5 |
808 | #define BLINK_INTERVAL 0.5 |
|
|
809 | #define TEXT_BLINK_INTERVAL 0.5 |
813 | |
810 | |
814 | struct mbstate { |
811 | struct mbstate { |
815 | mbstate_t mbs; |
812 | mbstate_t mbs; |
816 | |
813 | |
817 | mbstate () |
814 | mbstate () |
… | |
… | |
835 | hate_those_clicks:1, /* a.k.a. keep mark position */ |
832 | hate_those_clicks:1, /* a.k.a. keep mark position */ |
836 | num_scr_allow:1, |
833 | num_scr_allow:1, |
837 | bypass_keystate:1, |
834 | bypass_keystate:1, |
838 | #ifdef CURSOR_BLINK |
835 | #ifdef CURSOR_BLINK |
839 | hidden_cursor:1, |
836 | hidden_cursor:1, |
|
|
837 | #endif |
|
|
838 | #ifdef TEXT_BLINK |
|
|
839 | hidden_text:1, |
840 | #endif |
840 | #endif |
841 | #ifdef POINTER_BLANK |
841 | #ifdef POINTER_BLANK |
842 | hidden_pointer:1, |
842 | hidden_pointer:1, |
843 | #endif |
843 | #endif |
844 | parsed_geometry:1, |
844 | parsed_geometry:1, |
… | |
… | |
898 | fnum, /* logical font number */ |
898 | fnum, /* logical font number */ |
899 | last_bot, /* scrollbar last bottom position */ |
899 | last_bot, /* scrollbar last bottom position */ |
900 | last_top, /* scrollbar last top position */ |
900 | last_top, /* scrollbar last top position */ |
901 | last_state, /* scrollbar last state */ |
901 | last_state, /* scrollbar last state */ |
902 | scrollbar_len, |
902 | scrollbar_len, |
903 | currmaxcol, |
|
|
904 | #ifdef MENUBAR |
903 | #ifdef MENUBAR |
905 | menu_readonly, /* okay to alter menu? */ |
904 | menu_readonly, /* okay to alter menu? */ |
906 | Arrows_x, |
905 | Arrows_x, |
907 | #endif |
906 | #endif |
908 | #if MENUBAR_MAX > 1 |
907 | #if MENUBAR_MAX > 1 |
… | |
… | |
1038 | /* these three don't need to be kept but do so to placate some mem checkers */ |
1037 | /* these three don't need to be kept but do so to placate some mem checkers */ |
1039 | char *env_windowid; /* environmental variable WINDOWID */ |
1038 | char *env_windowid; /* environmental variable WINDOWID */ |
1040 | char *env_display; /* environmental variable DISPLAY */ |
1039 | char *env_display; /* environmental variable DISPLAY */ |
1041 | char *env_term; /* environmental variable TERM */ |
1040 | char *env_term; /* environmental variable TERM */ |
1042 | char *env_colorfgbg; |
1041 | char *env_colorfgbg; |
1043 | char *buffer; |
|
|
1044 | char *locale; |
1042 | char *locale; |
1045 | char *codeset; |
1043 | char *codeset; |
1046 | char charsets[4]; |
1044 | char charsets[4]; |
1047 | unsigned char *v_buffer; /* pointer to physical buffer */ |
1045 | unsigned char *v_buffer; /* pointer to physical buffer */ |
1048 | unsigned int v_buflen; /* size of area to write */ |
1046 | unsigned int v_buflen; /* size of area to write */ |
… | |
… | |
1069 | void x_cb (io_watcher &w, short revents); io_watcher x_ev; |
1067 | void x_cb (io_watcher &w, short revents); io_watcher x_ev; |
1070 | |
1068 | |
1071 | void incr_cb (time_watcher &w); time_watcher incr_ev; |
1069 | void incr_cb (time_watcher &w); time_watcher incr_ev; |
1072 | |
1070 | |
1073 | #ifdef CURSOR_BLINK |
1071 | #ifdef CURSOR_BLINK |
|
|
1072 | void cursor_blink_cb (time_watcher &w); time_watcher cursor_blink_ev; |
|
|
1073 | #endif |
|
|
1074 | #ifdef TEXT_BLINK |
1074 | void blink_cb (time_watcher &w); time_watcher blink_ev; |
1075 | void text_blink_cb (time_watcher &w); time_watcher text_blink_ev; |
1075 | #endif |
1076 | #endif |
1076 | |
1077 | |
1077 | #ifdef POINTER_BLANK |
1078 | #ifdef POINTER_BLANK |
1078 | void pointer_cb (time_watcher &w); time_watcher pointer_ev; |
1079 | void pointer_cb (time_watcher &w); time_watcher pointer_ev; |
1079 | void pointer_blank (); |
1080 | void pointer_blank (); |
… | |
… | |
1137 | void scr_reset (); |
1138 | void scr_reset (); |
1138 | void scr_reset_realloc (); |
1139 | void scr_reset_realloc (); |
1139 | void scr_release (); |
1140 | void scr_release (); |
1140 | void scr_clear (); |
1141 | void scr_clear (); |
1141 | void scr_refresh (unsigned char refresh_type); |
1142 | void scr_refresh (unsigned char refresh_type); |
|
|
1143 | bool scr_refresh_rend (rend_t mask, rend_t value); |
1142 | void scr_erase_screen (int mode); |
1144 | void scr_erase_screen (int mode); |
1143 | void scr_touch (bool refresh); |
1145 | void scr_touch (bool refresh); |
1144 | void scr_expose (int x, int y, int width, int height, bool refresh); |
1146 | void scr_expose (int x, int y, int width, int height, bool refresh); |
1145 | }; |
1147 | }; |
1146 | |
1148 | |