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.10 by pcg, Tue Dec 2 21:49:46 2003 UTC vs.
Revision 1.12 by pcg, Wed Dec 17 09:00:35 2003 UTC

1/* 1/*
2 * $Id: rxvt.h,v 1.10 2003/12/02 21:49:46 pcg Exp $ 2 * $Id: rxvt.h,v 1.12 2003/12/17 09:00:35 pcg Exp $
3 */ 3 */
4 4
5#ifndef _RXVT_H_ /* include once only */ 5#ifndef _RXVT_H_ /* include once only */
6#define _RXVT_H_ 6#define _RXVT_H_
7 7
15#include <X11/Xatom.h> 15#include <X11/Xatom.h>
16 16
17#include "defaultfont.h" 17#include "defaultfont.h"
18#include "rxvtcolor.h" 18#include "rxvtcolor.h"
19#include "iom.h" 19#include "iom.h"
20#include "salloc.h"
20 21
21/* 22/*
22 ***************************************************************************** 23 *****************************************************************************
23 * SYSTEM HACKS 24 * SYSTEM HACKS
24 ***************************************************************************** 25 *****************************************************************************
555 Rs_pointerBlankDelay, 556 Rs_pointerBlankDelay,
556 NUM_RESOURCES 557 NUM_RESOURCES
557}; 558};
558 559
559enum { 560enum {
560 TIMEOUT_INCR = 0,
561 NUM_TIMEOUTS
562};
563
564enum {
565 XA_COMPOUND_TEXT = 0, 561 XA_COMPOUND_TEXT = 0,
566 XA_MULTIPLE, 562 XA_MULTIPLE,
567 XA_TARGETS, 563 XA_TARGETS,
568 XA_TEXT, 564 XA_TEXT,
569 XA_TIMESTAMP, 565 XA_TIMESTAMP,
1069 struct timeval lastcursorchange; 1065 struct timeval lastcursorchange;
1070#endif 1066#endif
1071#ifdef POINTER_BLANK 1067#ifdef POINTER_BLANK
1072 struct timeval lastmotion; 1068 struct timeval lastmotion;
1073#endif 1069#endif
1074 struct timeval timeout[NUM_TIMEOUTS];
1075 1070
1076/* these three don't need to be kept but do so to placate some mem checkers */ 1071/* these three don't need to be kept but do so to placate some mem checkers */
1077 char *env_windowid; /* environmental variable WINDOWID */ 1072 char *env_windowid; /* environmental variable WINDOWID */
1078 char *env_display; /* environmental variable DISPLAY */ 1073 char *env_display; /* environmental variable DISPLAY */
1079 char *env_term; /* environmental variable TERM */ 1074 char *env_term; /* environmental variable TERM */
1091/* command input buffering */ 1086/* command input buffering */
1092 unsigned char *cmdbuf_ptr, *cmdbuf_endp; 1087 unsigned char *cmdbuf_ptr, *cmdbuf_endp;
1093 unsigned char cmdbuf_base[BUFSIZ]; 1088 unsigned char cmdbuf_base[BUFSIZ];
1094 unsigned char kbuf[KBUFSZ]; 1089 unsigned char kbuf[KBUFSZ];
1095 1090
1091 rxvt_salloc *ralloc;
1092 rxvt_salloc *talloc;
1093
1094 void paste (const unsigned char *data, unsigned int len);
1095
1096 void flush (); 1096 void flush ();
1097 1097
1098 void check_cb (check_watcher &w); check_watcher check_ev; 1098 void check_cb (check_watcher &w); check_watcher check_ev;
1099 void destroy_cb (time_watcher &w); time_watcher destroy_ev; 1099 void destroy_cb (time_watcher &w); time_watcher destroy_ev;
1100 1100
1101 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; 1101 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev;
1102 void x_cb (io_watcher &w, short revents); io_watcher x_ev; 1102 void x_cb (io_watcher &w, short revents); io_watcher x_ev;
1103
1104 void incr_cb (time_watcher &w); time_watcher incr_ev;
1103 1105
1104#ifdef CURSOR_BLINK 1106#ifdef CURSOR_BLINK
1105 void blink_cb (time_watcher &w); time_watcher blink_ev; 1107 void blink_cb (time_watcher &w); time_watcher blink_ev;
1106#endif 1108#endif
1107 1109
1128 bool pty_fill (); 1130 bool pty_fill ();
1129 void process_x_events (); 1131 void process_x_events ();
1130 1132
1131 void *operator new (size_t s); 1133 void *operator new (size_t s);
1132 void operator delete (void *p, size_t s); 1134 void operator delete (void *p, size_t s);
1135
1136 /* screen(!) */
1137 void scr_blank_line (text_t *et, rend_t *er, unsigned int width, rend_t efs);
1138 void scr_blank_screen_mem (text_t **tp, rend_t **rp, unsigned int row, rend_t efs);
1139 int scr_scroll_text (int row1, int row2, int count, int spec);
1140 void scr_reset ();
1141 void scr_reset_realloc ();
1142 void scr_release ();
1133}; 1143};
1134 1144
1135#ifndef __attribute__ 1145#ifndef __attribute__
1136# ifdef __GNUC__ 1146# ifdef __GNUC__
1137# if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2) 1147# if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines