1 | /* |
1 | /* |
2 | * $Id: rxvt.h,v 1.16 2003/12/18 05:45:11 pcg Exp $ |
2 | * $Id: rxvt.h,v 1.17 2003/12/18 07:31:19 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 | |
… | |
… | |
16 | |
16 | |
17 | #include "defaultfont.h" |
17 | #include "defaultfont.h" |
18 | #include "rxvtcolor.h" |
18 | #include "rxvtcolor.h" |
19 | #include "iom.h" |
19 | #include "iom.h" |
20 | #include "salloc.h" |
20 | #include "salloc.h" |
|
|
21 | |
|
|
22 | #include <wchar.h> |
21 | |
23 | |
22 | /* |
24 | /* |
23 | ***************************************************************************** |
25 | ***************************************************************************** |
24 | * SYSTEM HACKS |
26 | * SYSTEM HACKS |
25 | ***************************************************************************** |
27 | ***************************************************************************** |
… | |
… | |
831 | #endif |
833 | #endif |
832 | |
834 | |
833 | #define BLINK_INTERVAL 0.5 |
835 | #define BLINK_INTERVAL 0.5 |
834 | |
836 | |
835 | struct mbstate { |
837 | struct mbstate { |
836 | unsigned char orig; |
838 | mbstate_t mbs; |
837 | uint32_t reg; |
|
|
838 | int cnt; |
|
|
839 | |
839 | |
840 | mbstate () |
840 | mbstate () |
841 | { |
841 | { |
842 | cnt = 0; |
842 | MEMSET (&mbs, 0, sizeof (mbs)); |
843 | } |
843 | } |
844 | }; |
844 | }; |
845 | |
845 | |
846 | struct rxvt_term : rxvt_vars { |
846 | struct rxvt_term : rxvt_vars { |
847 | struct mbstate mbstate; |
847 | struct mbstate mbstate; |
… | |
… | |
863 | #endif |
863 | #endif |
864 | #ifdef POINTER_BLANK |
864 | #ifdef POINTER_BLANK |
865 | hidden_pointer:1, |
865 | hidden_pointer:1, |
866 | #endif |
866 | #endif |
867 | parsed_geometry:1, |
867 | parsed_geometry:1, |
868 | seen_input:1; /* wether any input has been seen so far */ |
868 | seen_input:1, /* wether any input has been seen so far */ |
|
|
869 | enc_utf8:1; /* wether terminal reads/writes utf-8 */ |
869 | |
870 | |
870 | unsigned char refresh_type, |
871 | unsigned char refresh_type, |
871 | #ifdef UTMP_SUPPORT |
872 | #ifdef UTMP_SUPPORT |
872 | next_utmp_action, |
873 | next_utmp_action, |
873 | #endif |
874 | #endif |
… | |
… | |
884 | #ifdef GREEK_SUPPORT |
885 | #ifdef GREEK_SUPPORT |
885 | short greek_mode; /* greek keyboard mode */ |
886 | short greek_mode; /* greek keyboard mode */ |
886 | #endif |
887 | #endif |
887 | short rvideo; |
888 | short rvideo; |
888 | int16_t num_scr; /* screen: number lines scrolled */ |
889 | int16_t num_scr; /* screen: number lines scrolled */ |
889 | uint16_t prev_ncol, /* screen: previous number of columns */ |
890 | uint16_t prev_ncol, /* screen: previous number of columns */ |
890 | prev_nrow; /* screen: previous number of rows */ |
891 | prev_nrow; /* screen: previous number of rows */ |
891 | #ifdef RXVT_GRAPHICS |
892 | #ifdef RXVT_GRAPHICS |
892 | uint16_t gr_prev_start; |
893 | uint16_t gr_prev_start; |
893 | #endif |
894 | #endif |
894 | /* ---------- */ |
895 | /* ---------- */ |
895 | rend_t rstyle; |
896 | rend_t rstyle; |
896 | /* ---------- */ |
897 | /* ---------- */ |
897 | uint32_t pixcolor_set[NPIXCLR_SETS]; |
898 | uint32_t pixcolor_set[NPIXCLR_SETS]; |
898 | /* ---------- */ |
899 | /* ---------- */ |
899 | #ifdef SELECTION_SCROLLING |
900 | #ifdef SELECTION_SCROLLING |
900 | int scroll_selection_delay, |
901 | int scroll_selection_delay, |
901 | scroll_selection_lines; |
902 | scroll_selection_lines; |
902 | enum page_dirn scroll_selection_dir; |
903 | enum page_dirn scroll_selection_dir; |
… | |
… | |
1128 | void operator delete (void *p, size_t s); |
1129 | void operator delete (void *p, size_t s); |
1129 | |
1130 | |
1130 | void init_secondary (); |
1131 | void init_secondary (); |
1131 | const char **init_resources (int argc, const char *const *argv); |
1132 | const char **init_resources (int argc, const char *const *argv); |
1132 | void init_env (); |
1133 | void init_env (); |
|
|
1134 | void set_locale (const char *locale); |
1133 | void init_xlocale (); |
1135 | void init_xlocale (); |
1134 | void init_command (const char *const *argv); |
1136 | void init_command (const char *const *argv); |
1135 | int run_command (const char *const *argv); |
1137 | int run_command (const char *const *argv); |
1136 | int run_child (const char *const *argv); |
1138 | int run_child (const char *const *argv); |
1137 | |
1139 | |