… | |
… | |
835 | #define SET_LOCALE(locale) rxvt_set_locale (locale) |
835 | #define SET_LOCALE(locale) rxvt_set_locale (locale) |
836 | extern bool rxvt_set_locale (const char *locale); |
836 | extern bool rxvt_set_locale (const char *locale); |
837 | extern bool rxvt_push_locale (const char *locale); |
837 | extern bool rxvt_push_locale (const char *locale); |
838 | extern void rxvt_pop_locale (); |
838 | extern void rxvt_pop_locale (); |
839 | |
839 | |
840 | /* |
|
|
841 | ***************************************************************************** |
840 | /****************************************************************************/ |
842 | * VARIABLES |
841 | |
843 | ***************************************************************************** |
|
|
844 | */ |
|
|
845 | #ifdef MENUBAR |
842 | #ifdef MENUBAR |
846 | # include "menubar.h" |
843 | # include "menubar.h" |
847 | #endif |
844 | #endif |
848 | |
845 | |
849 | #define BLINK_INTERVAL 0.5 |
846 | #define BLINK_INTERVAL 0.5 |
… | |
… | |
856 | # endif |
853 | # endif |
857 | # endif |
854 | # endif |
858 | # define __attribute__(x) |
855 | # define __attribute__(x) |
859 | #endif |
856 | #endif |
860 | |
857 | |
|
|
858 | /****************************************************************************/ |
|
|
859 | |
|
|
860 | #define LINE_LONGER 0x0001 // line is continued on the next row |
|
|
861 | #define LINE_FILTERED 0x0002 // line has been filtered |
|
|
862 | #define LINE_COMPRESSED 0x0004 // line has been compressed (NYI) |
|
|
863 | |
|
|
864 | struct line_t { |
|
|
865 | text_t *t; // terminal the text |
|
|
866 | rend_t *r; // rendition, uses RS_ flags |
|
|
867 | tlen_t_ l; // length of each text line, LINE_CONT == continued on next line |
|
|
868 | uint32_t f; // flags |
|
|
869 | |
|
|
870 | bool is_longer () |
|
|
871 | { |
|
|
872 | return f & LINE_LONGER; |
|
|
873 | } |
|
|
874 | |
|
|
875 | void is_longer (int set) |
|
|
876 | { |
|
|
877 | if (set) |
|
|
878 | f |= LINE_LONGER; |
|
|
879 | else |
|
|
880 | f &= ~LINE_LONGER; |
|
|
881 | } |
|
|
882 | |
|
|
883 | void clear () |
|
|
884 | { |
|
|
885 | t = 0; |
|
|
886 | r = 0; |
|
|
887 | l = 0; |
|
|
888 | f = 0; |
|
|
889 | } |
|
|
890 | |
|
|
891 | void touch () // call whenever a line is changed/touched/updated |
|
|
892 | { |
|
|
893 | #if ENABLE_PERL |
|
|
894 | f &= ~LINE_FILTERED; |
|
|
895 | #endif |
|
|
896 | } |
|
|
897 | |
|
|
898 | void touch (int col) |
|
|
899 | { |
|
|
900 | max_it (l, col); |
|
|
901 | touch (); |
|
|
902 | } |
|
|
903 | }; |
|
|
904 | |
|
|
905 | /****************************************************************************/ |
|
|
906 | |
861 | // primivite wrapper around mbstate_t to ensure initialisation |
907 | // primivite wrapper around mbstate_t to ensure initialisation |
862 | struct mbstate { |
908 | struct mbstate { |
863 | mbstate_t mbs; |
909 | mbstate_t mbs; |
864 | |
910 | |
865 | operator mbstate_t *() { return &mbs; } |
911 | operator mbstate_t *() { return &mbs; } |
866 | void reset () { memset (&mbs, 0, sizeof (mbs)); } |
912 | void reset () { memset (&mbs, 0, sizeof (mbs)); } |
867 | mbstate () { reset (); } |
913 | mbstate () { reset (); } |
868 | }; |
914 | }; |
|
|
915 | |
|
|
916 | /****************************************************************************/ |
869 | |
917 | |
870 | #define UNICODE_MASK 0x1fffffUL |
918 | #define UNICODE_MASK 0x1fffffUL |
871 | |
919 | |
872 | #if UNICODE3 |
920 | #if UNICODE3 |
873 | # define COMPOSE_LO 0x40000000UL |
921 | # define COMPOSE_LO 0x40000000UL |
… | |
… | |
904 | }; |
952 | }; |
905 | |
953 | |
906 | extern class rxvt_composite_vec rxvt_composite; |
954 | extern class rxvt_composite_vec rxvt_composite; |
907 | #endif |
955 | #endif |
908 | |
956 | |
|
|
957 | /****************************************************************************/ |
909 | |
958 | |
910 | #ifdef KEYSYM_RESOURCE |
959 | #ifdef KEYSYM_RESOURCE |
911 | class keyboard_manager; |
960 | class keyboard_manager; |
912 | #endif |
961 | #endif |
913 | |
962 | |
… | |
… | |
1404 | void scr_touch (bool refresh); |
1453 | void scr_touch (bool refresh); |
1405 | void scr_expose (int x, int y, int width, int height, bool refresh); |
1454 | void scr_expose (int x, int y, int width, int height, bool refresh); |
1406 | rxvt_fontset *scr_find_fontset (rend_t r = DEFAULT_RSTYLE); |
1455 | rxvt_fontset *scr_find_fontset (rend_t r = DEFAULT_RSTYLE); |
1407 | void scr_recolour (); |
1456 | void scr_recolour (); |
1408 | void scr_remap_chars (); |
1457 | void scr_remap_chars (); |
1409 | void scr_remap_chars (const line_t &l); |
1458 | void scr_remap_chars (line_t &l); |
1410 | |
1459 | |
1411 | void scr_poweron (); |
1460 | void scr_poweron (); |
1412 | void scr_cursor (int mode); |
1461 | void scr_cursor (int mode); |
1413 | void scr_do_wrap (); |
1462 | void scr_do_wrap (); |
1414 | int scr_change_screen (int scrn); |
1463 | int scr_change_screen (int scrn); |