… | |
… | |
789 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
789 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
790 | #else |
790 | #else |
791 | # define XPMClearArea(a, b, c, d, e, f, g) |
791 | # define XPMClearArea(a, b, c, d, e, f, g) |
792 | #endif |
792 | #endif |
793 | |
793 | |
794 | #ifdef UTMP_SUPPORT |
|
|
795 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
|
|
796 | # undef HAVE_UTMPX_H |
|
|
797 | # undef HAVE_STRUCT_UTMPX |
|
|
798 | # endif |
|
|
799 | # if !defined(RXVT_UTMP_FILE) || !defined(HAVE_STRUCT_UTMP) |
|
|
800 | # undef HAVE_UTMP_H |
|
|
801 | # undef HAVE_STRUCT_UTMP |
|
|
802 | # endif |
|
|
803 | |
|
|
804 | # ifdef HAVE_UTMPX_H |
|
|
805 | # include <utmpx.h> |
|
|
806 | # endif |
|
|
807 | # ifdef HAVE_UTMP_H |
|
|
808 | # include <utmp.h> |
|
|
809 | # endif |
|
|
810 | #endif |
|
|
811 | |
|
|
812 | #ifdef DEBUG_CMD |
794 | #ifdef DEBUG_CMD |
813 | # define D_CMD(x) fprintf x ; fputc('\n', stderr) |
795 | # define D_CMD(x) fprintf x ; fputc('\n', stderr) |
814 | #else |
796 | #else |
815 | # define D_CMD(x) |
797 | # define D_CMD(x) |
816 | #endif |
798 | #endif |
… | |
… | |
1098 | const char *key_delete; |
1080 | const char *key_delete; |
1099 | #endif |
1081 | #endif |
1100 | struct mouse_event MEvent; |
1082 | struct mouse_event MEvent; |
1101 | XComposeStatus compose; |
1083 | XComposeStatus compose; |
1102 | ttymode_t tio; |
1084 | ttymode_t tio; |
1103 | #ifdef UTMP_SUPPORT |
|
|
1104 | # ifdef HAVE_STRUCT_UTMP |
|
|
1105 | struct utmp ut; |
|
|
1106 | # endif |
|
|
1107 | # ifdef HAVE_STRUCT_UTMPX |
|
|
1108 | struct utmpx utx; |
|
|
1109 | # endif |
|
|
1110 | # if (defined(HAVE_STRUCT_UTMP) && defined(HAVE_UTMP_PID)) || defined(HAVE_STRUCT_UTMPX) |
|
|
1111 | char ut_id[5]; |
|
|
1112 | # endif |
|
|
1113 | int utmp_pos; |
|
|
1114 | #endif |
|
|
1115 | row_col_t oldcursor; |
1085 | row_col_t oldcursor; |
1116 | #ifdef XPM_BACKGROUND |
1086 | #ifdef XPM_BACKGROUND |
1117 | bgPixmap_t bgPixmap; |
1087 | bgPixmap_t bgPixmap; |
1118 | XpmAttributes xpmAttr; /* originally loaded pixmap and its scaling */ |
1088 | XpmAttributes xpmAttr; /* originally loaded pixmap and its scaling */ |
1119 | #endif |
1089 | #endif |
… | |
… | |
1151 | |
1121 | |
1152 | const char *rs[NUM_RESOURCES]; |
1122 | const char *rs[NUM_RESOURCES]; |
1153 | /* command input buffering */ |
1123 | /* command input buffering */ |
1154 | char *cmdbuf_ptr, *cmdbuf_endp; |
1124 | char *cmdbuf_ptr, *cmdbuf_endp; |
1155 | char cmdbuf_base[CBUFSIZ]; |
1125 | char cmdbuf_base[CBUFSIZ]; |
|
|
1126 | |
|
|
1127 | rxvt_ptytty pty; |
1156 | |
1128 | |
1157 | rxvt_salloc *talloc; // text line allocator |
1129 | rxvt_salloc *talloc; // text line allocator |
1158 | rxvt_salloc *ralloc; // rend line allocator |
1130 | rxvt_salloc *ralloc; // rend line allocator |
1159 | |
1131 | |
1160 | static vector<rxvt_term *> termlist; // a vector of all running rxvt_term's |
1132 | static vector<rxvt_term *> termlist; // a vector of all running rxvt_term's |
… | |
… | |
1329 | void process_sgr_mode (unsigned int nargs, const int *arg); |
1301 | void process_sgr_mode (unsigned int nargs, const int *arg); |
1330 | void process_graphics (); |
1302 | void process_graphics (); |
1331 | // init.C |
1303 | // init.C |
1332 | void Get_Colours (); |
1304 | void Get_Colours (); |
1333 | void get_ourmods (); |
1305 | void get_ourmods (); |
1334 | // logging.C |
|
|
1335 | void makeutent (const char *pty, const char *hostname); |
|
|
1336 | void cleanutent (); |
|
|
1337 | // main.C |
1306 | // main.C |
1338 | void privileged_utmp (rxvt_privaction action); |
1307 | void privileged_utmp (rxvt_privaction action); |
1339 | bool set_fonts (); |
1308 | bool set_fonts (); |
1340 | void set_string_property (Atom prop, const char *str, int len = -1); |
1309 | void set_string_property (Atom prop, const char *str, int len = -1); |
1341 | void set_utf8_property (Atom prop, const char *str, int len = -1); |
1310 | void set_utf8_property (Atom prop, const char *str, int len = -1); |