1 | /* |
1 | /* |
2 | * $Id: rxvtlib.h.in,v 1.4 2003/11/27 10:12:10 pcg Exp $ |
2 | * $Id: rxvtlib.h.in,v 1.7 2003/12/18 05:45:11 pcg Exp $ |
3 | */ |
3 | */ |
4 | |
4 | |
5 | #ifndef _RXVTLIB_H_ /* include once only */ |
5 | #ifndef _RXVTLIB_H_ /* include once only */ |
6 | #define _RXVTLIB_H_ |
6 | #define _RXVTLIB_H_ |
7 | |
7 | |
… | |
… | |
184 | * scrollback region : we're only here if TermWin.view_start != 0 |
184 | * scrollback region : we're only here if TermWin.view_start != 0 |
185 | * Rows [TermWin.saveLines] ... [TermWin.saveLines + TermWin.nrow - 1] |
185 | * Rows [TermWin.saveLines] ... [TermWin.saveLines + TermWin.nrow - 1] |
186 | * normal `unscrolled' screen region |
186 | * normal `unscrolled' screen region |
187 | */ |
187 | */ |
188 | typedef struct { |
188 | typedef struct { |
|
|
189 | int16_t *tlen; /* length of each text line */ |
189 | text_t **text; /* _all_ the text */ |
190 | text_t **text; /* _all_ the text */ |
190 | int16_t *tlen; /* length of each text line */ |
|
|
191 | rend_t **rend; /* rendition, uses RS_ flags */ |
191 | rend_t **rend; /* rendition, uses RS_ flags */ |
192 | row_col_t cur; /* cursor position on the screen */ |
192 | row_col_t cur; /* cursor position on the screen */ |
193 | uint16_t tscroll; /* top of settable scroll region */ |
193 | uint16_t tscroll; /* top of settable scroll region */ |
194 | uint16_t bscroll; /* bottom of settable scroll region */ |
194 | uint16_t bscroll; /* bottom of settable scroll region */ |
195 | uint16_t charset; /* character set number [0..3] */ |
195 | uint16_t charset; /* character set number [0..3] */ |
… | |
… | |
279 | short bot; /* slider bottom position */ |
279 | short bot; /* slider bottom position */ |
280 | short style; /* style: rxvt, xterm, next */ |
280 | short style; /* style: rxvt, xterm, next */ |
281 | short width; /* scrollbar width */ |
281 | short width; /* scrollbar width */ |
282 | Window win; |
282 | Window win; |
283 | int (*update)(pR_ int, int, int, int); |
283 | int (*update)(pR_ int, int, int, int); |
|
|
284 | |
|
|
285 | void setIdle() { state = 1 ; } |
|
|
286 | void setMotion() { state = 'm'; } |
|
|
287 | void setUp() { state = 'U'; } |
|
|
288 | void setDn() { state = 'D'; } |
284 | } scrollBar_t; |
289 | } scrollBar_t; |
285 | |
290 | |
286 | struct rxvt_vars { |
291 | struct rxvt_vars { |
287 | TermWin_t TermWin; |
292 | TermWin_t TermWin; |
288 | scrollBar_t scrollBar; |
293 | scrollBar_t scrollBar; |
… | |
… | |
297 | int Xdepth; |
302 | int Xdepth; |
298 | int sb_shadow; /* scrollbar shadow width */ |
303 | int sb_shadow; /* scrollbar shadow width */ |
299 | int Xfd; /* file descriptor of X server connection */ |
304 | int Xfd; /* file descriptor of X server connection */ |
300 | int cmd_fd; /* pty file descriptor; connected to command */ |
305 | int cmd_fd; /* pty file descriptor; connected to command */ |
301 | int tty_fd; /* tty file descriptor; connected to child */ |
306 | int tty_fd; /* tty file descriptor; connected to child */ |
302 | int num_fds; /* number of file descriptors being used */ |
|
|
303 | int numlock_state; |
307 | int numlock_state; |
304 | text_t **drawn_text; /* text drawn on screen (characters) */ |
308 | text_t **drawn_text; /* text drawn on screen (characters) */ |
305 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |
309 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |
306 | text_t **buf_text; |
310 | text_t **buf_text; |
307 | rend_t **buf_rend; |
311 | rend_t **buf_rend; |