… | |
… | |
20 | @include_sys_strredir_h@ |
20 | @include_sys_strredir_h@ |
21 | |
21 | |
22 | #include <sys/wait.h> |
22 | #include <sys/wait.h> |
23 | #include <sys/stat.h> |
23 | #include <sys/stat.h> |
24 | |
24 | |
|
|
25 | #if HAVE_CWCHAR |
25 | #include <cwchar> |
26 | # include <cwchar> |
|
|
27 | #elif HAVE_WCHAR_H |
|
|
28 | # include <wchar.h> |
|
|
29 | #else |
|
|
30 | // stdlib.h might provide it |
|
|
31 | #endif |
26 | |
32 | |
27 | #include "ptytty.h" |
33 | #include "ptytty.h" |
28 | |
34 | |
29 | extern "C" { |
35 | extern "C" { |
30 | #include <X11/Intrinsic.h> /* Xlib, Xutil, Xresource, Xfuncproto */ |
36 | #include <X11/Intrinsic.h> /* Xlib, Xutil, Xresource, Xfuncproto */ |
… | |
… | |
54 | |
60 | |
55 | typedef struct rxvt_term *rxvt_t; |
61 | typedef struct rxvt_term *rxvt_t; |
56 | |
62 | |
57 | extern rxvt_t rxvt_current_term; |
63 | extern rxvt_t rxvt_current_term; |
58 | |
64 | |
59 | # define SET_R(r) rxvt_current_term = (r) |
65 | #define SET_R(r) rxvt_current_term = (r) |
60 | # define GET_R rxvt_current_term |
66 | #define GET_R rxvt_current_term |
61 | |
67 | |
62 | #define scrollbar_visible() scrollBar.state |
68 | #define scrollbar_visible() scrollBar.state |
63 | #define menubar_visible() menuBar.state |
69 | #define menubar_visible() menuBar.state |
64 | |
70 | |
65 | typedef struct { |
71 | typedef struct { |
… | |
… | |
214 | #else |
220 | #else |
215 | # define Opt_insecure 0 |
221 | # define Opt_insecure 0 |
216 | # define Opt_borderLess 0 |
222 | # define Opt_borderLess 0 |
217 | #endif |
223 | #endif |
218 | #define Opt_pastableTabs (1UL<<25) |
224 | #define Opt_pastableTabs (1UL<<25) |
|
|
225 | #define Opt_cursorUnderline (1UL<<26) |
219 | /* place holder used for parsing command-line options */ |
226 | /* place holder used for parsing command-line options */ |
220 | #define Opt_Reverse (1UL<<30) |
227 | #define Opt_Reverse (1UL<<30) |
221 | #define Opt_Boolean (1UL<<31) |
228 | #define Opt_Boolean (1UL<<31) |
222 | |
229 | |
223 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
230 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |