Makefile.in now honours DESTDIR
[librote.git] / roteprivate.h
blob627c91f63180da804557b43f6e8b4c5313232227
1 /*
2 LICENSE INFORMATION:
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public
5 License (LGPL) as published by the Free Software Foundation.
7 Please refer to the COPYING file for more information.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 Copyright (c) 2004 Bruno T. C. de Oliveira
22 #ifndef btco_ROTE_vtstate_h
23 #define btco_ROTE_vtstate_h
25 #define ESEQ_BUF_SIZE 128 /* size of escape sequence buffer */
26 #define MAX_CUSTOM_ES_HANDLERS 32
28 /* Terminal private data */
29 struct RoteTermPrivate_ {
30 bool escaped; /* whether we are currently reading an
31 * escape sequence */
33 bool graphmode; /* whether terminal is in graphical
34 * character mode or not */
36 int scrolltop, scrollbottom; /* current scrolling region of terminal */
37 int saved_x, saved_y; /* saved cursor position */
39 char esbuf[ESEQ_BUF_SIZE]; /* 0-terminated string. Does NOT include
40 * the initial escape (\x1B) character. */
41 int esbuf_len; /* length of buffer. The following property
42 * is always kept: esbuf[esbuf_len] == '\0' */
44 int pty; /* file descriptor for the pty attached to
45 * this terminal. -1 if none. */
47 /* custom escape sequence handler */
48 rote_es_handler_t handler;
51 #endif