1 #ifndef __CONSOLE_HPP__ 2 #define __CONSOLE_HPP__ 104 WORD _wPrevAttributes;
119 template <
typename _VarType >
129 _VarType &
val()
const {
return _v; }
133 template <
typename _VarType >
134 inline std::ostream & operator << ( std::ostream & o, ConsoleAttrT<_VarType>
const & tr )
142 template <
typename _VarType >
151 template <
typename _VarType >
170 template <
typename _Ty,
typename... _ArgType >
171 inline static void OutputV( _Ty&& a, _ArgType&& ... arg )
174 OutputV( std::forward<_ArgType>(arg)... );
177 template <
typename... _ArgType >
183 OutputV( std::forward<_ArgType>(arg)... );
185 std::cout << std::endl;
190 #endif // __CONSOLE_HPP__
ConsoleAttrT(winux::ushort attr, _VarType const &v, bool isSetBgColor=false)
WINUX_DLL char const * __TerminalBgColorAttrs[]
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)
WINUX_DLL char const * __TerminalFgColorAttrs[]
std::basic_string< tchar > String