… | |
… | |
269 | * :............: |
269 | * :............: |
270 | * | |
270 | * | |
271 | * +---< SB_WIDTH_NEXT |
271 | * +---< SB_WIDTH_NEXT |
272 | */ |
272 | */ |
273 | |
273 | |
|
|
274 | enum { |
274 | #define NO_REFRESH 0 /* Window not visible at all! */ |
275 | NO_REFRESH = 0 , /* Window not visible at all! */ |
275 | #define FAST_REFRESH (1<<0) /* Fully exposed window */ |
276 | FAST_REFRESH = 1<<0, /* Fully exposed window */ |
276 | #define SLOW_REFRESH (1<<1) /* Partially exposed window */ |
277 | SLOW_REFRESH = 1<<1, /* Partially exposed window */ |
277 | #define SMOOTH_REFRESH (1<<2) /* Do sync'ing to make it smooth */ |
278 | SMOOTH_REFRESH = 1<<2, /* Do sync'ing to make it smooth */ |
278 | #define REFRESH_BOUNDS (1<<3) |
279 | REFRESH_BOUNDS = 1<<3 |
|
|
280 | }; |
279 | |
281 | |
280 | #ifdef NO_SECONDARY_SCREEN |
282 | #ifdef NO_SECONDARY_SCREEN |
281 | # define NSCREENS 0 |
283 | # define NSCREENS 0 |
282 | #else |
284 | #else |
283 | # define NSCREENS 1 |
285 | # define NSCREENS 1 |
… | |
… | |
291 | #define FONT_CMD '#' |
293 | #define FONT_CMD '#' |
292 | #define FONT_DN "#-" |
294 | #define FONT_DN "#-" |
293 | #define FONT_UP "#+" |
295 | #define FONT_UP "#+" |
294 | |
296 | |
295 | /* flags for rxvt_scr_gotorc () */ |
297 | /* flags for rxvt_scr_gotorc () */ |
|
|
298 | enum { |
296 | #define C_RELATIVE 1 /* col movement is relative */ |
299 | C_RELATIVE = 1 , /* col movement is relative */ |
297 | #define R_RELATIVE 2 /* row movement is relative */ |
300 | R_RELATIVE = 2, /* row movement is relative */ |
298 | #define RELATIVE (R_RELATIVE|C_RELATIVE) |
301 | RELATIVE = 1 | 2 |
|
|
302 | }; |
299 | |
303 | |
300 | /* modes for rxvt_scr_insdel_chars (), rxvt_scr_insdel_lines () */ |
304 | /* modes for rxvt_scr_insdel_chars (), rxvt_scr_insdel_lines () */ |
301 | #define INSERT -1 /* don't change these values */ |
305 | enum { |
302 | #define DELETE +1 |
306 | INSERT = -1, /* don't change these values */ |
303 | #define ERASE +2 |
307 | DELETE = +1, |
|
|
308 | ERASE = +2 |
|
|
309 | }; |
304 | |
310 | |
305 | /* modes for rxvt_scr_page () - scroll page. used by scrollbar window */ |
311 | /* modes for rxvt_scr_page () - scroll page. used by scrollbar window */ |
306 | enum page_dirn { |
312 | enum page_dirn { |
307 | UP, |
313 | UP, |
308 | DN, |
314 | DN, |
… | |
… | |
367 | #define XTerm_font 50 |
373 | #define XTerm_font 50 |
368 | |
374 | |
369 | /* |
375 | /* |
370 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
376 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
371 | */ |
377 | */ |
|
|
378 | #define XTerm_locale 9 /* change locale */ |
372 | #define XTerm_Menu 10 /* set menu item */ |
379 | #define XTerm_Menu 10 /* set menu item */ |
373 | #define XTerm_Pixmap 20 /* new bg pixmap */ |
380 | #define XTerm_Pixmap 20 /* new bg pixmap */ |
374 | #define XTerm_restoreFG 39 /* change default fg color */ |
381 | #define XTerm_restoreFG 39 /* change default fg color */ |
375 | #define XTerm_restoreBG 49 /* change default bg color */ |
382 | #define XTerm_restoreBG 49 /* change default bg color */ |
376 | #define XTerm_dumpscreen 55 /* dump scrollback and all of screen */ |
383 | #define XTerm_dumpscreen 55 /* dump scrollback and all of screen */ |
… | |
… | |
1147 | void scr_refresh (unsigned char refresh_type); |
1154 | void scr_refresh (unsigned char refresh_type); |
1148 | bool scr_refresh_rend (rend_t mask, rend_t value); |
1155 | bool scr_refresh_rend (rend_t mask, rend_t value); |
1149 | void scr_erase_screen (int mode); |
1156 | void scr_erase_screen (int mode); |
1150 | void scr_touch (bool refresh); |
1157 | void scr_touch (bool refresh); |
1151 | void scr_expose (int x, int y, int width, int height, bool refresh); |
1158 | void scr_expose (int x, int y, int width, int height, bool refresh); |
|
|
1159 | void scr_remap_chars (); |
|
|
1160 | void scr_remap_chars (text_t *tp, rend_t *rp); |
1152 | |
1161 | |
1153 | /* autoconvert */ |
1162 | /* autoconvert */ |
1154 | |
1163 | |
1155 | // command.C |
1164 | // command.C |
1156 | void lookup_key (XKeyEvent &ev); |
1165 | void lookup_key (XKeyEvent &ev); |
1157 | unsigned int cmd_write (const unsigned char *str, unsigned int count); |
1166 | unsigned int cmd_write (const unsigned char *str, unsigned int count); |
1158 | uint32_t cmd_getc (); |
1167 | uint32_t cmd_getc (); |
1159 | void mouse_report (const XButtonEvent &ev); |
1168 | void mouse_report (XButtonEvent &ev); |
1160 | void button_press (const XButtonEvent &ev); |
1169 | void button_press (XButtonEvent &ev); |
1161 | void button_release (const XButtonEvent &ev); |
1170 | void button_release (XButtonEvent &ev); |
1162 | int check_our_parents (); |
1171 | int check_our_parents (); |
1163 | #ifdef PRINTPIPE |
1172 | #ifdef PRINTPIPE |
1164 | FILE * popen_printer (); |
1173 | FILE *popen_printer (); |
1165 | int pclose_printer (FILE *stream); |
1174 | int pclose_printer (FILE *stream); |
1166 | #endif |
1175 | #endif |
1167 | void process_print_pipe (); |
1176 | void process_print_pipe (); |
1168 | void process_nonprinting (unsigned char ch); |
1177 | void process_nonprinting (unsigned char ch); |
1169 | void process_escape_vt52 (unsigned char ch); |
1178 | void process_escape_vt52 (unsigned char ch); |
… | |
… | |
1186 | void cleanutent (); |
1195 | void cleanutent (); |
1187 | // main.C; |
1196 | // main.C; |
1188 | void privileges (int mode); |
1197 | void privileges (int mode); |
1189 | void privileged_utmp (char action); |
1198 | void privileged_utmp (char action); |
1190 | void privileged_ttydev (char action); |
1199 | void privileged_ttydev (char action); |
1191 | void change_font (int init, const char *fontname); |
1200 | bool change_font (const char *fontname); |
1192 | void font_up_down (int n, int direction); |
1201 | bool font_up_down (int n, int direction); |
1193 | void set_title (const char *str); |
1202 | void set_title (const char *str); |
1194 | void set_iconName (const char *str); |
1203 | void set_iconName (const char *str); |
1195 | void set_window_color (int idx, const char *color); |
1204 | void set_window_color (int idx, const char *color); |
1196 | void set_colorfgbg (); |
1205 | void set_colorfgbg (); |
1197 | int rXParseAllocColor (rxvt_color * screen_in_out, const char *colour); |
1206 | int rXParseAllocColor (rxvt_color * screen_in_out, const char *colour); |
… | |
… | |
1201 | // menubar.C |
1210 | // menubar.C |
1202 | void menuitem_free (menu_t *menu, menuitem_t *item); |
1211 | void menuitem_free (menu_t *menu, menuitem_t *item); |
1203 | int action_dispatch (action_t *action); |
1212 | int action_dispatch (action_t *action); |
1204 | void menuarrow_free (char name); |
1213 | void menuarrow_free (char name); |
1205 | void menuarrow_add (char *string); |
1214 | void menuarrow_add (char *string); |
1206 | char * menu_find_base (menu_t **menu, char *path); |
1215 | char *menu_find_base (menu_t **menu, char *path); |
1207 | menu_t * menu_delete (menu_t *menu); |
1216 | menu_t *menu_delete (menu_t *menu); |
1208 | menu_t * menu_add (menu_t *parent, char *path); |
1217 | menu_t *menu_add (menu_t *parent, char *path); |
1209 | void drawbox_menubar (int x, int len, int state); |
1218 | void drawbox_menubar (int x, int len, int state); |
1210 | void drawtriangle (int x, int y, int state); |
1219 | void drawtriangle (int x, int y, int state); |
1211 | void drawbox_menuitem (int y, int state); |
1220 | void drawbox_menuitem (int y, int state); |
1212 | void menu_show (); |
1221 | void menu_show (); |
1213 | void menu_display (void (*update) (rxvt_t *)); |
1222 | void menu_display (void (rxvt_term::*update) ()); |
1214 | void menu_hide_all (); |
1223 | void menu_hide_all (); |
1215 | void menu_hide (); |
1224 | void menu_hide (); |
1216 | void menu_clear (menu_t *menu); |
1225 | void menu_clear (menu_t *menu); |
1217 | void menubar_clear (); |
1226 | void menubar_clear (); |
1218 | bar_t * menubar_find (const char *name); |
1227 | bar_t *menubar_find (const char *name); |
1219 | int menubar_push (const char *name); |
1228 | int menubar_push (const char *name); |
1220 | void menubar_remove (const char *name); |
1229 | void menubar_remove (const char *name); |
1221 | void menubar_dump (FILE *fp); |
1230 | void menubar_dump (FILE *fp); |
1222 | void menubar_read (const char *filename); |
1231 | void menubar_read (const char *filename); |
1223 | void menubar_dispatch (char *str); |
1232 | void menubar_dispatch (char *str); |
1224 | void draw_Arrows (int name, int state); |
1233 | void draw_Arrows (int name, int state); |
1225 | void menubar_expose (); |
1234 | void menubar_expose (); |
1226 | int menubar_mapping (int map); |
1235 | int menubar_mapping (int map); |
1227 | int menu_select (XButtonEvent *ev); |
1236 | int menu_select (XButtonEvent &ev); |
1228 | void menubar_select (XButtonEvent *ev); |
1237 | void menubar_select (XButtonEvent &ev); |
1229 | void menubar_control (XButtonEvent *ev); |
1238 | void menubar_control (XButtonEvent &ev); |
1230 | void map_menuBar (int map); |
1239 | void map_menuBar (int map); |
1231 | #endif |
1240 | #endif |
1232 | |
1241 | |
1233 | // screen.C |
1242 | // screen.C |
1234 | void scr_poweron (); |
1243 | void scr_poweron (); |