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

Comparing rxvt-unicode/src/rxvtlib.h.in (file contents):
Revision 1.49 by root, Sun Dec 18 00:59:42 2005 UTC vs.
Revision 1.51 by root, Tue Dec 20 19:30:59 2005 UTC

86struct line_t { 86struct line_t {
87 text_t *t; // terminal the text 87 text_t *t; // terminal the text
88 rend_t *r; // rendition, uses RS_ flags 88 rend_t *r; // rendition, uses RS_ flags
89 tlen_t l; // length of each text line, LINE_CONT == continued on next line 89 tlen_t l; // length of each text line, LINE_CONT == continued on next line
90 90
91 bool is_cont () 91 bool is_longer ()
92 { 92 {
93 return l < 0; 93 return l < 0;
94 }
95
96 void set_is_longer ()
97 {
98 l = LINE_CONT;
94 } 99 }
95 100
96 void clear () 101 void clear ()
97 { 102 {
98 t = 0; 103 t = 0;
106 * width : 1 <= width 111 * width : 1 <= width
107 * height : 1 <= height 112 * height : 1 <= height
108 * ncol : 1 <= ncol <= MAX(int16_t) 113 * ncol : 1 <= ncol <= MAX(int16_t)
109 * nrow : 1 <= nrow <= MAX(int16_t) 114 * nrow : 1 <= nrow <= MAX(int16_t)
110 * saveLines : 0 <= saveLines <= MAX(int16_t) 115 * saveLines : 0 <= saveLines <= MAX(int16_t)
116 * nlines : nrow + saveLines
111 * nsaved : 0 <= nscrolled <= saveLines 117 * nsaved : 0 <= nsaved <= saveLines
112 * term_start: 0 <= term_start < saveLines 118 * term_start: 0 <= term_start < saveLines
113 * view_start: 0 <= view_start < saveLines 119 * view_start: 0 <= view_start < saveLines
114 */ 120 */
115 121
116struct TermWin_t { 122struct TermWin_t {
126 int mapped; /* window state mapped? */ 132 int mapped; /* window state mapped? */
127 int int_bwidth; /* internal border width */ 133 int int_bwidth; /* internal border width */
128 int ext_bwidth; /* external border width */ 134 int ext_bwidth; /* external border width */
129 int lineSpace; /* number of extra pixels between rows */ 135 int lineSpace; /* number of extra pixels between rows */
130 int saveLines; /* number of lines that fit in scrollback */ 136 int saveLines; /* number of lines that fit in scrollback */
137 int total_rows; /* total number of rows in this terminal */
131 int nsaved; /* number of line actually scrolled */ 138 int nsaved; /* number of rows saved to scrollback */
132 int nscrolled; /*D*///TODO remove
133 int term_start; /* term lines start here */ 139 int term_start; /* term lines start here */
134 int view_start; /* scrollback view starts here */ 140 int view_start; /* scrollback view starts here */
135 Window parent[6]; /* parent identifiers - we're parent[0] */ 141 Window parent[6]; /* parent identifiers - we're parent[0] */
136 Window vt; /* vt100 window */ 142 Window vt; /* vt100 window */
137 GC gc; /* GC for drawing */ 143 GC gc; /* GC for drawing */
158 * clicks: 1, 2 or 3 clicks - 4 indicates a special condition of 1 where 164 * clicks: 1, 2 or 3 clicks - 4 indicates a special condition of 1 where
159 * nothing is selected 165 * nothing is selected
160 * beg: row/column of beginning of selection : never past mark 166 * beg: row/column of beginning of selection : never past mark
161 * mark: row/column of initial click : never past end 167 * mark: row/column of initial click : never past end
162 * end: row/column of one character past end of selection 168 * end: row/column of one character past end of selection
163 * * Note: -nscrolled <= beg.row <= mark.row <= end.row < nrow 169 * * Note: -nsaved <= beg.row <= mark.row <= end.row < nrow
164 * * Note: col == -1 ==> we're left of screen 170 * * Note: col == -1 ==> we're left of screen
165 * 171 *
166 * Layout of text/rend information in the screen_t text/rend structures: 172 * Layout of text/rend information in the screen_t text/rend structures:
167 * Rows [0] ... [saveLines - 1] 173 * Rows [0] ... [saveLines - 1]
168 * scrollback region : we're only here if view_start != 0 174 * scrollback region : we're only here if view_start != 0
169 * Rows [saveLines] ... [saveLines + nrow - 1] 175 * Rows [saveLines] ... [saveLines + nrow - 1]
170 * normal `unscrolled' screen region 176 * normal `unsaved' screen region
171 */ 177 */
172typedef struct { 178typedef struct {
173 line_t **line; 179 line_t **line;
174 180
175 row_col_t cur; /* cursor position on the screen */ 181 row_col_t cur; /* cursor position on the screen */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines