GDCM 3.0.24
gdcmTerminal.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMTERMINAL_H
15#define GDCMTERMINAL_H
16
17#include "gdcmTypes.h"
18
19
20namespace gdcm
21{
28//-----------------------------------------------------------------------------
29
30namespace terminal
31{
32 typedef enum
33 {
35 VT100
37 typedef enum
38 {
39 black = 0,
42 yellow, // brown ??
46 white
48 typedef enum
49 {
50 reset = 0,
51 bright = 1, // bold
52 dim = 2,
54 blink = 5,
56 hidden = 8
59 GDCM_EXPORT std::string setfgcolor( Color c );
60 GDCM_EXPORT std::string setbgcolor( Color c );
62}
63
64} // end namespace gdcm
65//-----------------------------------------------------------------------------
66#endif //GDCMTERMINAL_H
#define GDCM_EXPORT
Definition gdcmWin32.h:34
GDCM_EXPORT std::string setattribute(Attribute att)
GDCM_EXPORT std::string setbgcolor(Color c)
GDCM_EXPORT std::string setfgcolor(Color c)
GDCM_EXPORT void setmode(Mode m)
Color
Definition gdcmTerminal.h:38
@ magenta
Definition gdcmTerminal.h:44
@ green
Definition gdcmTerminal.h:41
@ blue
Definition gdcmTerminal.h:43
@ white
Definition gdcmTerminal.h:46
@ cyan
Definition gdcmTerminal.h:45
@ red
Definition gdcmTerminal.h:40
@ black
Definition gdcmTerminal.h:39
@ yellow
Definition gdcmTerminal.h:42
Attribute
Definition gdcmTerminal.h:49
@ underline
Definition gdcmTerminal.h:53
@ reset
Definition gdcmTerminal.h:50
@ dim
Definition gdcmTerminal.h:52
@ bright
Definition gdcmTerminal.h:51
@ reverse
Definition gdcmTerminal.h:55
@ hidden
Definition gdcmTerminal.h:56
@ blink
Definition gdcmTerminal.h:54
Mode
Definition gdcmTerminal.h:33
@ CONSOLE
Definition gdcmTerminal.h:34
@ VT100
Definition gdcmTerminal.h:35
Definition gdcmASN1.h:21