ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.39 by pcg, Sun Feb 22 10:38:11 2004 UTC vs.
Revision 1.42 by pcg, Tue Feb 24 16:25:45 2004 UTC

296 296
297/* flags for rxvt_scr_gotorc () */ 297/* flags for rxvt_scr_gotorc () */
298enum { 298enum {
299 C_RELATIVE = 1 , /* col movement is relative */ 299 C_RELATIVE = 1 , /* col movement is relative */
300 R_RELATIVE = 2, /* row movement is relative */ 300 R_RELATIVE = 2, /* row movement is relative */
301 RELATIVE = 1 | 2 301 RELATIVE = 1 | 2,
302}; 302};
303 303
304/* modes for rxvt_scr_insdel_chars (), rxvt_scr_insdel_lines () */ 304/* modes for rxvt_scr_insdel_chars (), rxvt_scr_insdel_lines () */
305enum { 305enum {
306 INSERT = -1, /* don't change these values */ 306 INSERT = -1, /* don't change these values */
307 DELETE = +1, 307 DELETE = +1,
308 ERASE = +2 308 ERASE = +2,
309}; 309};
310 310
311/* modes for rxvt_scr_page () - scroll page. used by scrollbar window */ 311/* modes for rxvt_scr_page () - scroll page. used by scrollbar window */
312enum page_dirn { 312enum page_dirn {
313 UP, 313 UP,
314 DN, 314 DN,
315 NO_DIR 315 NO_DIR,
316}; 316};
317 317
318/* arguments for rxvt_scr_change_screen () */ 318/* arguments for rxvt_scr_change_screen () */
319enum { 319enum {
320 PRIMARY = 0, 320 PRIMARY = 0,
321 SECONDARY 321 SECONDARY,
322}; 322};
323 323
324#define RS_None 0 /* Normal */ 324#define RS_None 0 /* Normal */
325 325
326#define RS_fgMask 0x000001FFu /* 512 colors */ 326#define RS_fgMask 0x000001FFu /* 512 colors */
350enum { 350enum {
351 C0_NUL = 0x00, 351 C0_NUL = 0x00,
352 C0_SOH, C0_STX, C0_ETX, C0_EOT, C0_ENQ, C0_ACK, C0_BEL, 352 C0_SOH, C0_STX, C0_ETX, C0_EOT, C0_ENQ, C0_ACK, C0_BEL,
353 C0_BS , C0_HT , C0_LF , C0_VT , C0_FF , C0_CR , C0_SO , C0_SI , 353 C0_BS , C0_HT , C0_LF , C0_VT , C0_FF , C0_CR , C0_SO , C0_SI ,
354 C0_DLE, C0_DC1, C0_DC2, D0_DC3, C0_DC4, C0_NAK, C0_SYN, C0_ETB, 354 C0_DLE, C0_DC1, C0_DC2, D0_DC3, C0_DC4, C0_NAK, C0_SYN, C0_ETB,
355 C0_CAN, C0_EM , C0_SUB, C0_ESC, C0_IS4, C0_IS3, C0_IS2, C0_IS1 355 C0_CAN, C0_EM , C0_SUB, C0_ESC, C0_IS4, C0_IS3, C0_IS2, C0_IS1,
356}; 356};
357#define CHAR_ST 0x9c /* 0234 */ 357#define CHAR_ST 0x9c /* 0234 */
358 358
359/* 359/*
360 * XTerm Operating System Commands: ESC ] Ps;Pt (ST|BEL) 360 * XTerm Operating System Commands: ESC ] Ps;Pt (ST|BEL)
361 * colour extensions by Christian W. Zuckschwerdt <zany@triq.net> 361 * colour extensions by Christian W. Zuckschwerdt <zany@triq.net>
362 */ 362 */
363enum {
363#define XTerm_name 0 364 XTerm_name = 0,
364#define XTerm_iconName 1 365 XTerm_iconName = 1,
365#define XTerm_title 2 366 XTerm_title = 2,
367 XTerm_property = 3, /* change X property, not yet implemented */
366#define XTerm_Color 4 /* change colors */ 368 XTerm_Color = 4, /* change colors */
369 XTerm_Color00 = 10, /* not implemented, CLASH! */
370 XTerm_Color01 = 11, /* not implemented */
367#define XTerm_Color_cursor 12 /* change actual 'Cursor' color */ 371 XTerm_Color_cursor = 12, /* change actual 'Cursor' color */
368#define XTerm_Color_pointer 13 /* change actual 'Pointer' color */ 372 XTerm_Color_pointer = 13, /* change actual 'Pointer' color */
373 XTerm_Color04 = 14, /* not implemented */
374 XTerm_Color05 = 15, /* not implemented */
375 XTerm_Color06 = 16, /* not implemented */
369#define XTerm_Color_RV 17 /* change actual 'Highlight' color */ 376 XTerm_Color_RV = 17, /* change actual 'Highlight' color */
370#define XTerm_Color_BD 18 /* change actual 'Bold' color */
371#define XTerm_Color_UL 19 /* change actual 'Underline' color */
372#define XTerm_logfile 46 /* not implemented */ 377 XTerm_logfile = 46, /* not implemented */
373#define XTerm_font 50 378 XTerm_font = 50,
374 379
375/* 380 XTerm_konsole30 = 30, /* reserved for konsole */
381 XTerm_konsole31 = 31, /* reserved for konsole */
382 XTerm_emacs51 = 51, /* reserved for emacs shell */
383 /*
376 * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) 384 * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL)
377 */ 385 */
378#define XTerm_locale 9 /* change locale */ 386 XTerm_locale = 9, /* change locale */
379#define XTerm_Menu 10 /* set menu item */ 387 XTerm_Menu = 10, /* set menu item */
388 XTerm_Color_BD = 18, /* change actual 'Bold' color */
389 XTerm_Color_UL = 19, /* change actual 'Underline' color */
380#define XTerm_Pixmap 20 /* new bg pixmap */ 390 XTerm_Pixmap = 20, /* new bg pixmap */
381#define XTerm_restoreFG 39 /* change default fg color */ 391 XTerm_restoreFG = 39, /* change default fg color */
382#define XTerm_restoreBG 49 /* change default bg color */ 392 XTerm_restoreBG = 49, /* change default bg color */
383#define XTerm_dumpscreen 55 /* dump scrollback and all of screen */ 393 XTerm_dumpscreen = 55, /* dump scrollback and all of screen */
394};
384 395
385/* Words starting with `Color_' are colours. Others are counts */ 396/* Words starting with `Color_' are colours. Others are counts */
386/* 397/*
387 * The following comment is mostly obsolete since pixcolor_set was expanded: 398 * The following comment is mostly obsolete since pixcolor_set was expanded:
388 * We're currently upto 29 colours. Only 3 more available. The 399 * We're currently upto 29 colours. Only 3 more available. The
1163 1174
1164 // command.C 1175 // command.C
1165 void lookup_key (XKeyEvent &ev); 1176 void lookup_key (XKeyEvent &ev);
1166 unsigned int cmd_write (const unsigned char *str, unsigned int count); 1177 unsigned int cmd_write (const unsigned char *str, unsigned int count);
1167 uint32_t cmd_getc (); 1178 uint32_t cmd_getc ();
1179 bool cmd_parse ();
1168 void mouse_report (const XButtonEvent &ev); 1180 void mouse_report (XButtonEvent &ev);
1169 void button_press (const XButtonEvent &ev); 1181 void button_press (XButtonEvent &ev);
1170 void button_release (const XButtonEvent &ev); 1182 void button_release (XButtonEvent &ev);
1171 int check_our_parents (); 1183 int check_our_parents ();
1172#ifdef PRINTPIPE 1184#ifdef PRINTPIPE
1173 FILE *popen_printer (); 1185 FILE *popen_printer ();
1174 int pclose_printer (FILE *stream); 1186 int pclose_printer (FILE *stream);
1175#endif 1187#endif
1210 // menubar.C 1222 // menubar.C
1211 void menuitem_free (menu_t *menu, menuitem_t *item); 1223 void menuitem_free (menu_t *menu, menuitem_t *item);
1212 int action_dispatch (action_t *action); 1224 int action_dispatch (action_t *action);
1213 void menuarrow_free (char name); 1225 void menuarrow_free (char name);
1214 void menuarrow_add (char *string); 1226 void menuarrow_add (char *string);
1215 char * menu_find_base (menu_t **menu, char *path); 1227 char *menu_find_base (menu_t **menu, char *path);
1216 menu_t * menu_delete (menu_t *menu); 1228 menu_t *menu_delete (menu_t *menu);
1217 menu_t * menu_add (menu_t *parent, char *path); 1229 menu_t *menu_add (menu_t *parent, char *path);
1218 void drawbox_menubar (int x, int len, int state); 1230 void drawbox_menubar (int x, int len, int state);
1219 void drawtriangle (int x, int y, int state); 1231 void drawtriangle (int x, int y, int state);
1220 void drawbox_menuitem (int y, int state); 1232 void drawbox_menuitem (int y, int state);
1221 void menu_show (); 1233 void menu_show ();
1222 void menu_display (void (*update) (rxvt_t *)); 1234 void menu_display (void (rxvt_term::*update) ());
1223 void menu_hide_all (); 1235 void menu_hide_all ();
1224 void menu_hide (); 1236 void menu_hide ();
1225 void menu_clear (menu_t *menu); 1237 void menu_clear (menu_t *menu);
1226 void menubar_clear (); 1238 void menubar_clear ();
1227 bar_t * menubar_find (const char *name); 1239 bar_t *menubar_find (const char *name);
1228 int menubar_push (const char *name); 1240 int menubar_push (const char *name);
1229 void menubar_remove (const char *name); 1241 void menubar_remove (const char *name);
1230 void menubar_dump (FILE *fp); 1242 void menubar_dump (FILE *fp);
1231 void menubar_read (const char *filename); 1243 void menubar_read (const char *filename);
1232 void menubar_dispatch (char *str); 1244 void menubar_dispatch (char *str);
1233 void draw_Arrows (int name, int state); 1245 void draw_Arrows (int name, int state);
1234 void menubar_expose (); 1246 void menubar_expose ();
1235 int menubar_mapping (int map); 1247 int menubar_mapping (int map);
1236 int menu_select (XButtonEvent *ev); 1248 int menu_select (XButtonEvent &ev);
1237 void menubar_select (XButtonEvent *ev); 1249 void menubar_select (XButtonEvent &ev);
1238 void menubar_control (XButtonEvent *ev); 1250 void menubar_control (XButtonEvent &ev);
1239 void map_menuBar (int map); 1251 void map_menuBar (int map);
1240#endif 1252#endif
1241 1253
1242 // screen.C 1254 // screen.C
1243 void scr_poweron (); 1255 void scr_poweron ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines