Debian Codegraph @

src/terminal.h

raw
1 /* netToe Version 1.5.1
2 *
3 * Copyright 2000,2001 Gabriele Giorgetti <[email protected]>
4 * 2011-2014 Mats Erik Andersson <[email protected]>
5 *
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22 #ifndef _TERMINAL_H
23 # define _TERMINAL_H 1
24
25 #ifdef HAVE_CONFIG_H
26 # include <config.h>
27 #endif
28
29 #ifndef COLOR_BLACK
30 enum {
31 COLOR_BLACK, COLOR_RED, COLOR_GREEN,
32 COLOR_YELLOW, COLOR_BLUE, COLOR_MAGENTA,
33 COLOR_CYAN, COLOR_WHITE, COLOR_DEFAULT = 9
34 };
35 #endif /* ECMA-48 colour definitions. */
36
37 #ifndef COLOR_DEFAULT
38 # define COLOR_DEFAULT 9
39 #endif
40
41 enum {
42 ATTRIB_RESET = 0, ATTRIB_BRIGHT, ATTRIB_DIM, ATTRIB_UNDERLINE = 4,
43 ATTRIB_BLINK, ATTRIB_REVERSE = 7, ATTRIB_HIDDEN
44 };
45
46 #if defined USE_TERMINFO || defined USE_TERMCAP
47 void setup_terminfo(void);
48 #endif
49
50 void nettoe_term_clear (void);
51 void nettoe_term_set_color (int fg, int attrib);
52 void nettoe_term_set_default_color (void);
53 void nettoe_term_reset_color (void);
54
55 void nettoe_beep(void);
56
57 #endif /* !_TERMINAL_H */