Crystal Space: csutil/ansicommand.h Source File (Crystal Space Public API Reference)

| ## Public API Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# csutil/ansicommand.h

Go to the documentation of this file.

    00001 /*
    00002     Copyright (C) 2005 by Jorrit Tyberghein
    00003               (C) 2005 by Frank Richter
    00004               (C) 2006 by Marten Svanfeldt
    00005
    00006     This library is free software; you can redistribute it and/or
    00007     modify it under the terms of the GNU Library General Public
    00008     License as published by the Free Software Foundation; either
    00009     version 2 of the License, or (at your option) any later version.
    00010
    00011     This library is distributed in the hope that it will be useful,
    00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00014     Library General Public License for more details.
    00015
    00016     You should have received a copy of the GNU Library General Public
    00017     License along with this library; if not, write to the Free
    00018     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00019 */
    00020
    00021 #ifndef __CS_CSUTIL_ANSICOMMAND_H__
    00022 #define __CS_CSUTIL_ANSICOMMAND_H__
    00023
    00028
    00029 #define CS_ANSI_RST                     "\033[0m"
    00030
    00033
    00034 #define CS_ANSI_FK              "\033[30m"
    00036 #define CS_ANSI_FR              "\033[31m"
    00038 #define CS_ANSI_FG              "\033[32m"
    00040 #define CS_ANSI_FY              "\033[33m"
    00042 #define CS_ANSI_FB              "\033[34m"
    00044 #define CS_ANSI_FM              "\033[35m"
    00046 #define CS_ANSI_FC              "\033[36m"
    00048 #define CS_ANSI_FW              "\033[37m"
    00049
    00051
    00052 #define CS_ANSI_TEXT_BOLD_ON            "\033[1m"
    00054 #define CS_ANSI_TEXT_BOLD_OFF           "\033[22m"
    00055
    00058
    00059 #define CS_ANSI_BK              "\033[40m"
    00061 #define CS_ANSI_BR              "\033[41m"
    00063 #define CS_ANSI_BG              "\033[42m"
    00065 #define CS_ANSI_BY              "\033[43m"
    00067 #define CS_ANSI_BB              "\033[44m"
    00069 #define CS_ANSI_BM              "\033[45m"
    00071 #define CS_ANSI_BC              "\033[46m"
    00073 #define CS_ANSI_BW              "\033[47m"
    00074
    00078
    00079 #define CS_ANSI_CLEAR_SCREEN            "\033[J"
    00081 #define CS_ANSI_CLEAR_LINE              "\033[K"
    00082
    00086
    00087 #define CS_ANSI_CURSOR(x,y)             "\033[" #y ";" #x "H"
    00089 #define CS_ANSI_CURSOR_UP(l)            "\033[" #l "A"
    00091 #define CS_ANSI_CURSOR_DOWN(l)          "\033[" #l "B"
    00093 #define CS_ANSI_CURSOR_FWD(c)           "\033[" #c "C"
    00095 #define CS_ANSI_CURSOR_BWD(c)           "\033[" #c "D"
    00096
    00098 #endif // __CS_CSUTIL_ANSICOLOR_H__