Debian Codegraph @

src/client/ansi_term.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1998,1999 Ross Combs ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18 #ifndef JUST_NEED_TYPES
19 #ifndef INCLUDED_ANSI_TERM_PROTOS
20 #define INCLUDED_ANSI_TERM_PROTOScxx . . $ `src/client/ansi_term.h:20:9`!
21
22 #include <cstdio>
23
24 #define ansi_beepcxx . . $ `src/client/ansi_term.h:24:9`!()\
25 std::printf("\007");
26
27 #define ansi_screen_clearcxx . . $ `src/client/ansi_term.h:27:9`!()\
28 std::printf("\033[2J");
29
30 #define ansi_line_clearcxx . . $ `src/client/ansi_term.h:30:9`!()\
31 std::printf("\033[K");
32
33 #define ansi_cursor_move_upcxx . . $ `src/client/ansi_term.h:33:9`!(lines)\
34 std::printf("\033[%dA", lines);
35
36 #define ansi_cursor_move_downcxx . . $ `src/client/ansi_term.h:36:9`!(lines)\
37 std::printf("\033[%dB", lines);
38
39 #define ansi_cursor_move_leftcxx . . $ `src/client/ansi_term.h:39:9`!(chars)\
40 std::printf("\033[%dD", chars);
41
42 #define ansi_cursor_move_rightcxx . . $ `src/client/ansi_term.h:42:9`!(chars)\
43 std::printf("\033[%dC", chars);
44
45 #define ansi_cursor_move_homecxx . . $ `src/client/ansi_term.h:45:9`!()\
46 std::printf("\033[1;0H");
47
48 #define ansi_cursor_movecxx . . $ `src/client/ansi_term.h:48:9`!(y,x)\
49 std::printf("\033[%d;%dH", x + 1, y);
50
51 #define ansi_cursor_savecxx . . $ `src/client/ansi_term.h:51:9`!()\
52 std::printf("\033[u");
53
54 #define ansi_cursor_loadcxx . . $ `src/client/ansi_term.h:54:9`!()\
55 std::printf("\033[s");
56
57 #define ansi_text_resetcxx . . $ `src/client/ansi_term.h:57:9`!()\
58 std::printf("\033[0m");
59
60 #define ansi_text_stylecxx . . $ `src/client/ansi_term.h:60:9`!(style)\
61 std::printf("\033[%dm", style);
62
63 #define ansi_text_color_forecxx . . $ `src/client/ansi_term.h:63:9`!(color)\
64 std::printf("\033[3%dm", color);
65
66 #define ansi_text_color_backcxx . . $ `src/client/ansi_term.h:66:9`!(color)\
67 std::printf("\033[4%dm", color);
68
69 #define ansi_text_style_boldcxx . . $ `src/client/ansi_term.h:69:9`! 1
70 #define ansi_text_style_underlinecxx . . $ `src/client/ansi_term.h:70:9`! 4
71 #define ansi_text_style_blinkcxx . . $ `src/client/ansi_term.h:71:9`! 5
72 #define ansi_text_style_inversecxx . . $ `src/client/ansi_term.h:72:9`! 7
73
74 #define ansi_text_color_blackcxx . . $ `src/client/ansi_term.h:74:9`! 0
75 #define ansi_text_color_redcxx . . $ `src/client/ansi_term.h:75:9`! 1
76 #define ansi_text_color_greencxx . . $ `src/client/ansi_term.h:76:9`! 2
77 #define ansi_text_color_yellowcxx . . $ `src/client/ansi_term.h:77:9`! 3
78 #define ansi_text_color_bluecxx . . $ `src/client/ansi_term.h:78:9`! 4
79 #define ansi_text_color_magentacxx . . $ `src/client/ansi_term.h:79:9`! 5
80 #define ansi_text_color_cyancxx . . $ `src/client/ansi_term.h:80:9`! 6
81 #define ansi_text_color_whitecxx . . $ `src/client/ansi_term.h:81:9`! 7
82
83 #endif
84 #endif