Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1497688
terminal_colors.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
1 KB
Referenced Files
None
Subscribers
None
terminal_colors.h
View Options
/*******************************************************************************
*
* File: terminal_colors.h
*
* Contents: Facility for printing colorized text to terminals supporting it.
*
* Copyright 2017
*
* Author: David Juhasz (david.juhasz@tuwien.ac.at)
*
******************************************************************************/
#ifndef ROSA_SUPPORT_TERMINAL_COLORS_H
#define ROSA_SUPPORT_TERMINAL_COLORS_H
#include
<ostream>
namespace
rosa
{
namespace
terminal
{
// Text colors for colorizable terminals.
enum
class
Color
{
Default
,
Black
,
Red
,
Green
,
Yellow
,
Blue
,
Magenta
,
Cyan
,
Lightgrey
,
Darkgrey
,
Lightred
,
Lightgreen
,
Lightyellow
,
Lightblue
,
LightMagenta
,
Lightcyan
,
White
,
// Number of Color values:
NumColors
};
// Operator handling Color commands sent to output streams.
// PRE: color != Color::NumColors
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Color
color
);
}
// End namespace terminal
}
// End namespace rosa
#endif
// ROSA_SUPPORT_TERMINAL_COLORS_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Mar 1, 9:38 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
278335
Default Alt Text
terminal_colors.h (1 KB)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment