gdcmTerminal.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMTERMINAL_H
#define GDCMTERMINAL_H
#include "gdcmTypes.h"
namespace gdcm
{
//-----------------------------------------------------------------------------
namespace terminal
{
typedef enum
{
CONSOLE = 0,
VT100
} Mode;
typedef enum
{
black = 0,
red,
green,
yellow, // brown ??
blue,
magenta,
cyan,
white
} Color;
typedef enum
{
reset = 0,
bright = 1, // bold
dim = 2,
underline = 3,
blink = 5,
reverse = 7,
hidden = 8
} Attribute;
GDCM_EXPORT std::string setattribute( Attribute att );
GDCM_EXPORT std::string setfgcolor( Color c );
GDCM_EXPORT std::string setbgcolor( Color c );
GDCM_EXPORT void setmode( Mode m);
}
} // end namespace gdcm
//-----------------------------------------------------------------------------
#endif //GDCMTERMINAL_H
gdcm::Attribute
Attribute class This class use template metaprograming tricks to let the user know when the template ...
Definition gdcmAttribute.h:86
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm::terminal
Class for Terminal.
Definition gdcmTerminal.h:31
gdcm::terminal::setattribute
GDCM_EXPORT std::string setattribute(Attribute att)
gdcm::terminal::setbgcolor
GDCM_EXPORT std::string setbgcolor(Color c)
gdcm::terminal::setfgcolor
GDCM_EXPORT std::string setfgcolor(Color c)
gdcm::terminal::setmode
GDCM_EXPORT void setmode(Mode m)
gdcm::terminal::Color
Color
Definition gdcmTerminal.h:38
gdcm::terminal::magenta
@ magenta
Definition gdcmTerminal.h:44
gdcm::terminal::green
@ green
Definition gdcmTerminal.h:41
gdcm::terminal::blue
@ blue
Definition gdcmTerminal.h:43
gdcm::terminal::white
@ white
Definition gdcmTerminal.h:46
gdcm::terminal::cyan
@ cyan
Definition gdcmTerminal.h:45
gdcm::terminal::red
@ red
Definition gdcmTerminal.h:40
gdcm::terminal::black
@ black
Definition gdcmTerminal.h:39
gdcm::terminal::yellow
@ yellow
Definition gdcmTerminal.h:42
gdcm::terminal::Attribute
Attribute
Definition gdcmTerminal.h:49
gdcm::terminal::underline
@ underline
Definition gdcmTerminal.h:53
gdcm::terminal::reset
@ reset
Definition gdcmTerminal.h:50
gdcm::terminal::dim
@ dim
Definition gdcmTerminal.h:52
gdcm::terminal::bright
@ bright
Definition gdcmTerminal.h:51
gdcm::terminal::reverse
@ reverse
Definition gdcmTerminal.h:55
gdcm::terminal::hidden
@ hidden
Definition gdcmTerminal.h:56
gdcm::terminal::blink
@ blink
Definition gdcmTerminal.h:54
gdcm::terminal::Mode
Mode
Definition gdcmTerminal.h:33
gdcm::terminal::CONSOLE
@ CONSOLE
Definition gdcmTerminal.h:34
gdcm::terminal::VT100
@ VT100
Definition gdcmTerminal.h:35
gdcm
Definition gdcmASN1.h:21