2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: escbase.h /main/3 1995/10/31 12:00:08 rswiston $ */
25 /** ANSI Escape sequences */
26 #define HOME_UP "\033[H"
28 #define ERASE_FROM_CUR "\033[J"
29 #define ERASE_TO_CUR "\033[1J"
30 #define ERASE_ALL "\033[2J"
31 #define CLEAR_DISP ERASE_ALL
32 #define ERASE_LN_FROM_CUR "\033[K"
33 #define ERASE_LN_TO_CUR "\033[1K"
34 #define ERASE_LN_ALL "\033[2K"
35 #define ERASE_N_CHAR "\033[%dX"
37 #define CURSOR_UP "\033[A"
38 #define CURSOR_N_UP "\033[%dA"
39 #define CURSOR_DOWN "\033[B"
40 #define CURSOR_N_DOWN "\033[%dB"
41 #define CURSOR_N_FORW "\033[%dC"
42 #define CURSOR_N_BACK "\033[%dD"
43 #define GOTO_X_Y "\033[%d;%dH"
44 #define GOTO_X_Y_HVP "\033[%d;%df"
46 #define REVERSEINDEX "\033M"
47 #define NEXTLINE "\033E"
48 #define CURSOR_N_PREV_LINE "\033[%dF"
49 #define CURSOR_N_COLUMN "\033[%dG"
52 #define INSERT_N_LINE "\033[%dL"
53 #define INSERT_N_BLANK "\033[%d@"
54 #define DELETE_N_LINE "\033[%dM"
55 #define DELETE_N_CHAR "\033[%dP"
57 #define INSERT_MODE "\033[4h"
58 #define REPLACE_MODE "\033[4l"
60 #define CUR_POSN_STAT "\033[6n"
61 #define CUR_POSN_RPT "\033[%d;%dR"
62 #define TERMINAL_STAT "\033[5n"
63 #define TERMINAL_GOOD "\033[0n"
64 #define TERMINAL_BAD "\033[3n"
66 #define CLEAR_CUR_TAB "\033[g"
67 #define CLEAR_ALL_TABS "\033[3g"
68 #define SET_TAB "\033H"
71 #define SAVE_CURSOR "\0337"
72 #define RESTORE_CURSOR "\0338"
73 #define APPLN_KEYPAD "\033="
74 #define NORMAL_KEYPAD "\033>"
77 #define NORMAL "\033[0m"
78 #define BOLD "\033[1m"
79 #define UNDERSCORE "\033[4m"
80 #define BLINK "\033[5m"
81 #define INVERSE "\033[7m"
84 #define SET_SCROLL_REGN "\033[%d;%dr"
86 /*** DEC Private Mode Set (DECSET) ***/
88 #define APPL_CUR_KEYS "\033[?1h"
89 #define COLUMN_132 "\033[?3h"
90 #define SMOOTH_SCROLL "\033[?4h"
91 #define REVERSE_VIDEO "\033[?5h"
92 #define ORIGIN_MODE "\033[?6h"
93 #define WRAP_MODE "\033[?7h"
94 #define MARGIN_BELL "\033[?44h"
95 #define REVERSE_WRAP "\033[?45h"
96 #define START_LOGGING "\033[?46h"
98 #define NORMAL_CUR_KEYS "\033[?1l"
99 #define COLUMN_80 "\033[?3l"
100 #define JUMP_SCROLL "\033[?4l"
101 #define NORMAL_VIDEO "\033[?5l"
102 #define CURSOR_MODE "\033[?6l"
103 #define NO_WRAP_MODE "\033[?7l"
104 #define NO_MARGIN_BELL "\033[?44l"
105 #define NO_REVERSE_WRAP "\033[?45l"
106 #define STOP_LOGGING "\033[?46l"
108 #define SAVE_CUR_KEYS "\033[?1s"
109 #define SAVE_COLUMN_TYPE "\033[?3s"
110 #define SAVE_SCROLL_TYPE "\033[?4s"
111 #define SAVE_VIDEO_TYPE "\033[?5s"
112 #define SAVE_SCREEN_MODE "\033[?6s"
113 #define SAVE_WRAP_MODE "\033[?7s"
114 #define SAVE_MARGIN_BELL_TYPE "\033[?44s"
115 #define SAVE_REVERSE_WRAP_TYPE "\033[?45s"
116 #define SAVE_LOGGING_TYPE "\033[?46s"
118 #define REST_CUR_KEYS "\033[?1r"
119 #define REST_COLUMN_TYPE "\033[?3r"
120 #define REST_SCROLL_TYPE "\033[?4r"
121 #define REST_VIDEO_TYPE "\033[?5r"
122 #define REST_SCREEN_MODE "\033[?6r"
123 #define REST_WRAP_MODE "\033[?7r"
124 #define REST_MARGIN_BELL_TYPE "\033[?44r"
125 #define REST_REVERSE_WRAP_TYPE "\033[?45r"
126 #define REST_LOGGING_TYPE "\033[?46r"