1 | /* |
1 | /* |
2 | * $Id: rxvtlib.h.in,v 1.3 2003/11/25 11:52:42 pcg Exp $ |
2 | * $Id: rxvtlib.h.in,v 1.6 2003/12/17 09:00:35 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] */ |
… | |
… | |
297 | int Xdepth; |
297 | int Xdepth; |
298 | int sb_shadow; /* scrollbar shadow width */ |
298 | int sb_shadow; /* scrollbar shadow width */ |
299 | int Xfd; /* file descriptor of X server connection */ |
299 | int Xfd; /* file descriptor of X server connection */ |
300 | int cmd_fd; /* pty file descriptor; connected to command */ |
300 | int cmd_fd; /* pty file descriptor; connected to command */ |
301 | int tty_fd; /* tty file descriptor; connected to child */ |
301 | int tty_fd; /* tty file descriptor; connected to child */ |
302 | int num_fds; /* number of file descriptors being used */ |
|
|
303 | int numlock_state; |
302 | int numlock_state; |
304 | text_t **drawn_text; /* text drawn on screen (characters) */ |
303 | text_t **drawn_text; /* text drawn on screen (characters) */ |
305 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |
304 | rend_t **drawn_rend; /* text drawn on screen (rendition) */ |
306 | text_t **buf_text; |
305 | text_t **buf_text; |
307 | rend_t **buf_rend; |
306 | rend_t **buf_rend; |
… | |
… | |
310 | screen_t swap; |
309 | screen_t swap; |
311 | selection_t selection; |
310 | selection_t selection; |
312 | sstyle_t selection_style; |
311 | sstyle_t selection_style; |
313 | }; |
312 | }; |
314 | |
313 | |
|
|
314 | void rxvt_init_signals (); |
315 | rxvt_t rxvt_init (int argc, const char *const *argv); |
315 | rxvt_t rxvt_init (int argc, const char *const *argv); |
316 | |
316 | |
317 | #endif /* _RXVTLIB_H_ */ |
317 | #endif /* _RXVTLIB_H_ */ |
318 | |
318 | |