1 /******************************************************************************
2  * Copyright (c) 2004, 2008 IBM Corporation
3  * All rights reserved.
4  * This program and the accompanying materials
5  * are made available under the terms of the BSD License
6  * which accompanies this distribution, and is available at
7  * http://www.opensource.org/licenses/bsd-license.php
8  *
9  * Contributors:
10  *     IBM Corporation - initial implementation
11  *****************************************************************************/
12 #ifndef TERMCTRL_H
13 #define TERMCTRL_H
14 
15 /* foreground colors */
16 #define TERM_FG_BLACK    ""
17 #define TERM_FG_RED      ""
18 #define TERM_FG_GREEN    ""
19 #define TERM_FG_YELLOW   ""
20 #define TERM_FG_BLUE     ""
21 #define TERM_FG_MAGENTA  ""
22 #define TERM_FG_CYAN     ""
23 #define TERM_FG_WHITE    ""
24 
25 /* background colors */
26 #define TERM_BG_BLACK    ""
27 #define TERM_BG_RED      ""
28 #define TERM_BG_GREEN    ""
29 #define TERM_BG_YELLOW   ""
30 #define TERM_BG_BLUE     ""
31 #define TERM_BG_MAGENTA  ""
32 #define TERM_BG_CYAN     ""
33 #define TERM_BG_WHITE    ""
34 
35 /* control */
36 #define TERM_CTRL_RESET      ""
37 #define TERM_CTRL_BRIGHT     ""
38 #define TERM_CTRL_DIM        ""
39 #define TERM_CTRL_UNDERSCORE ""
40 #define TERM_CTRL_BLINK      ""
41 #define TERM_CTRL_REVERSE    ""
42 #define TERM_CTRL_HIDDEN     ""
43 #define TERM_CTRL_CLEAR      ""
44 #define TERM_CTRL_HOME       ""
45 
46 #define TERM_CTRL_1UP        ""
47 #define TERM_CTRL_1BACK      ""
48 #define TERM_CTRL_SAVECRS    ""
49 #define TERM_CTRL_RESTCRS    ""
50 #define TERM_CTRL_CRSON      "[?25h"
51 #define TERM_CTRL_CRSOFF     "[?25l"
52 #define TERM_CTRL_CRSFWDN    "[%dC"
53 #define TERM_CTRL_CRSX       "[%dC"
54 #define TERM_CTRL_CRSY       "[%dB"
55 #define TERM_CTRL_CRSXY      "[%d;%dH" /* y,x */
56 
57 /* keys */
58 #define KEY_CTRL 0x1b
59 #define KEY_UP   0x41
60 #define KEY_DN   0x42
61 
62 #endif
63