/usr/include/crystalspace-2.0/csutil/ansicommand.h is in libcrystalspace-dev 2.0+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | /*
Copyright (C) 2005 by Jorrit Tyberghein
(C) 2005 by Frank Richter
(C) 2006 by Marten Svanfeldt
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __CS_CSUTIL_ANSICOMMAND_H__
#define __CS_CSUTIL_ANSICOMMAND_H__
/**\file
* ANSI command codes. Can be passed to csPrintf() for formating text output.
*/
/// Reset custom set colors
#define CS_ANSI_RST "\033[0m"
/**\name Foreground colors
* @{ */
/// Black
#define CS_ANSI_FK "\033[30m"
/// Red
#define CS_ANSI_FR "\033[31m"
/// Green
#define CS_ANSI_FG "\033[32m"
/// Yellow
#define CS_ANSI_FY "\033[33m"
/// Blue
#define CS_ANSI_FB "\033[34m"
/// Magenta
#define CS_ANSI_FM "\033[35m"
/// Cyan
#define CS_ANSI_FC "\033[36m"
/// White
#define CS_ANSI_FW "\033[37m"
/** @} */
/// Bold or intense foreground text on
#define CS_ANSI_TEXT_BOLD_ON "\033[1m"
/// Bold or intense foreground text off
#define CS_ANSI_TEXT_BOLD_OFF "\033[22m"
/**\name Background colors
* @{ */
/// Black
#define CS_ANSI_BK "\033[40m"
/// Red
#define CS_ANSI_BR "\033[41m"
/// Green
#define CS_ANSI_BG "\033[42m"
/// Yellow
#define CS_ANSI_BY "\033[43m"
/// Blue
#define CS_ANSI_BB "\033[44m"
/// Magenta
#define CS_ANSI_BM "\033[45m"
/// Cyan
#define CS_ANSI_BC "\033[46m"
/// White
#define CS_ANSI_BW "\033[47m"
/** @} */
/**\name Clear commands
* @{ */
/// Clear screen
#define CS_ANSI_CLEAR_SCREEN "\033[J"
/// Clear end of line
#define CS_ANSI_CLEAR_LINE "\033[K"
/** @} */
/**\name Cursor movement commands
* @{ */
/**
* Move to specific position.
* \remarks Coordinates are 1-based.
*/
#define CS_ANSI_CURSOR(x,y) "\033[" #y ";" #x "H"
/// Move up specified number of lines
#define CS_ANSI_CURSOR_UP(l) "\033[" #l "A"
/// Move down specified number of lines
#define CS_ANSI_CURSOR_DOWN(l) "\033[" #l "B"
/// Move forward specified number of columns
#define CS_ANSI_CURSOR_FWD(c) "\033[" #c "C"
/// Move backward specified number of columns
#define CS_ANSI_CURSOR_BWD(c) "\033[" #c "D"
/** @} */
#endif // __CS_CSUTIL_ANSICOLOR_H__
|