1 #ifndef __CONSOLE_HPP__ 2 #define __CONSOLE_HPP__ 107 WORD _wPrevAttributes;
122 template <
typename _VarType >
132 _VarType &
val()
const {
return _v; }
136 template <
typename _VarType >
137 inline std::ostream & operator << ( std::ostream & o, ConsoleAttrT<_VarType>
const & tr )
145 template <
typename _VarType >
154 template <
typename _VarType >
173 template <
typename _Ty,
typename... _ArgType >
174 inline static void OutputV( _Ty&& a, _ArgType&& ... arg )
177 OutputV( std::forward<_ArgType>(arg)... );
180 template <
typename... _ArgType >
185 OutputV( std::forward<_ArgType>(arg)... );
187 std::cout << std::endl;
190 template <
typename... _ArgType >
195 OutputV( std::forward<_ArgType>(arg)... );
201 #endif // __CONSOLE_HPP__
ConsoleAttrT(winux::ushort attr, _VarType const &v, bool isSetBgColor=false)
static void ColorOutputLine(winux::ConsoleAttr const &ca, _ArgType &&...arg)
static void ColorOutput(winux::ConsoleAttr const &ca, _ArgType &&...arg)
std::istream & operator>>(std::istream &in, ConsoleAttrT< _VarType > const &tr)
#define DISABLE_OBJECT_COPY(clsname)
ConsoleColorAttrFlags
颜色属性标记
ConsoleAttrT< _VarType > ConsoleColor(winux::ushort attr, _VarType const &v, bool isSetBgColor=false)
char const * __TerminalBgColorAttrs[]
char const * __TerminalFgColorAttrs[]