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.210 by root, Mon Jan 16 17:11:12 2006 UTC vs.
Revision 1.214 by ayin, Tue Jan 17 09:24:53 2006 UTC

37#include "rxvttoolkit.h" 37#include "rxvttoolkit.h"
38#include "iom.h" 38#include "iom.h"
39#include "salloc.h" 39#include "salloc.h"
40 40
41#include "rxvtperl.h" 41#include "rxvtperl.h"
42#include "logging.h"
42 43
43// try to avoid some macros to decrease code size, on some systems 44// try to avoid some macros to decrease code size, on some systems
44#if ENABLE_MINIMAL 45#if ENABLE_MINIMAL
45# define strcmp(a,b) (strcmp)(a,b) 46# define strcmp(a,b) (strcmp)(a,b)
46# define strlen(a) (strlen)(a) 47# define strlen(a) (strlen)(a)
336 * | 337 * |
337 * +---< SB_WIDTH_NEXT 338 * +---< SB_WIDTH_NEXT
338 */ 339 */
339 340
340enum { 341enum {
341 NO_REFRESH = 0 , /* Window not visible at all! */ 342 NO_REFRESH = 0, /* Window not visible at all! */
342 FAST_REFRESH = 1<<0, /* Fully exposed window */ 343 FAST_REFRESH = 1, /* Fully exposed window */
343 SLOW_REFRESH = 1<<1, /* Partially exposed window */ 344 SLOW_REFRESH = 2, /* Partially exposed window */
344 SMOOTH_REFRESH = 1<<2, /* Do sync'ing to make it smooth */
345}; 345};
346 346
347#ifdef NO_SECONDARY_SCREEN 347#ifdef NO_SECONDARY_SCREEN
348# define NSCREENS 0 348# define NSCREENS 0
349#else 349#else
700/* 700/*
701 ***************************************************************************** 701 *****************************************************************************
702 * MACRO DEFINES 702 * MACRO DEFINES
703 ***************************************************************************** 703 *****************************************************************************
704 */ 704 */
705#define dLocal(type,name) type const name = this->name
705#define dDisp Display *disp = display->display 706#define dDisp Display *disp = this->display->display
706 707
707/* convert pixel dimensions to row/column values. Everything as int32_t */ 708/* convert pixel dimensions to row/column values. Everything as int32_t */
708#define Pixel2Col(x) Pixel2Width((int32_t)(x)) 709#define Pixel2Col(x) Pixel2Width((int32_t)(x))
709#define Pixel2Row(y) Pixel2Height((int32_t)(y)) 710#define Pixel2Row(y) Pixel2Height((int32_t)(y))
710#define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth) 711#define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth)
787 788
788#ifdef XPM_BACKGROUND 789#ifdef XPM_BACKGROUND
789# define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) 790# define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g))
790#else 791#else
791# define XPMClearArea(a, b, c, d, e, f, g) 792# define XPMClearArea(a, b, c, d, e, f, g)
792#endif
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 793#endif
811 794
812#ifdef DEBUG_CMD 795#ifdef DEBUG_CMD
813# define D_CMD(x) fprintf x ; fputc('\n', stderr) 796# define D_CMD(x) fprintf x ; fputc('\n', stderr)
814#else 797#else
1098 const char *key_delete; 1081 const char *key_delete;
1099#endif 1082#endif
1100 struct mouse_event MEvent; 1083 struct mouse_event MEvent;
1101 XComposeStatus compose; 1084 XComposeStatus compose;
1102 ttymode_t tio; 1085 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; 1086 row_col_t oldcursor;
1116#ifdef XPM_BACKGROUND 1087#ifdef XPM_BACKGROUND
1117 bgPixmap_t bgPixmap; 1088 bgPixmap_t bgPixmap;
1118 XpmAttributes xpmAttr; /* originally loaded pixmap and its scaling */ 1089 XpmAttributes xpmAttr; /* originally loaded pixmap and its scaling */
1119#endif 1090#endif
1151 1122
1152 const char *rs[NUM_RESOURCES]; 1123 const char *rs[NUM_RESOURCES];
1153 /* command input buffering */ 1124 /* command input buffering */
1154 char *cmdbuf_ptr, *cmdbuf_endp; 1125 char *cmdbuf_ptr, *cmdbuf_endp;
1155 char cmdbuf_base[CBUFSIZ]; 1126 char cmdbuf_base[CBUFSIZ];
1127
1128 rxvt_ptytty pty;
1129 rxvt_session session;
1156 1130
1157 rxvt_salloc *talloc; // text line allocator 1131 rxvt_salloc *talloc; // text line allocator
1158 rxvt_salloc *ralloc; // rend line allocator 1132 rxvt_salloc *ralloc; // rend line allocator
1159 1133
1160 static vector<rxvt_term *> termlist; // a vector of all running rxvt_term's 1134 static vector<rxvt_term *> termlist; // a vector of all running rxvt_term's
1329 void process_sgr_mode (unsigned int nargs, const int *arg); 1303 void process_sgr_mode (unsigned int nargs, const int *arg);
1330 void process_graphics (); 1304 void process_graphics ();
1331 // init.C 1305 // init.C
1332 void Get_Colours (); 1306 void Get_Colours ();
1333 void get_ourmods (); 1307 void get_ourmods ();
1334 // logging.C
1335 void makeutent (const char *pty, const char *hostname);
1336 void cleanutent ();
1337 // main.C 1308 // main.C
1338 void privileged_utmp (rxvt_privaction action); 1309 void privileged_utmp (rxvt_privaction action);
1339 bool set_fonts (); 1310 bool set_fonts ();
1340 void set_string_property (Atom prop, const char *str, int len = -1); 1311 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); 1312 void set_utf8_property (Atom prop, const char *str, int len = -1);
1421 void scr_blank_screen_mem (line_t &l, rend_t efs) const; 1392 void scr_blank_screen_mem (line_t &l, rend_t efs) const;
1422 int scr_scroll_text (int row1, int row2, int count); 1393 int scr_scroll_text (int row1, int row2, int count);
1423 void scr_reset (); 1394 void scr_reset ();
1424 void scr_release (); 1395 void scr_release ();
1425 void scr_clear (bool really = false); 1396 void scr_clear (bool really = false);
1426 void scr_refresh (unsigned char refresh_type); 1397 void scr_refresh ();
1427 bool scr_refresh_rend (rend_t mask, rend_t value); 1398 bool scr_refresh_rend (rend_t mask, rend_t value);
1428 void scr_erase_screen (int mode); 1399 void scr_erase_screen (int mode);
1429#if ENABLE_FRILLS 1400#if ENABLE_FRILLS
1430 void scr_erase_savelines (); 1401 void scr_erase_savelines ();
1431 void scr_backindex (); 1402 void scr_backindex ();
1495 int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len); 1466 int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len);
1496#endif 1467#endif
1497 1468
1498#if defined(RXVT_SCROLLBAR) 1469#if defined(RXVT_SCROLLBAR)
1499 // scrollbar-rxvt.C 1470 // scrollbar-rxvt.C
1500 void Draw_button (int x, int y, int state, int dirn);
1501 int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len); 1471 int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len);
1502#endif 1472#endif
1503 1473
1504#if defined(XTERM_SCROLLBAR) 1474#if defined(XTERM_SCROLLBAR)
1505 // scrollbar-xterm.C 1475 // scrollbar-xterm.C

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines