Exemplo n.º 1
0
//-------------------------------------------------------------------------------------------------
std::tstring_t
Console::setAttributes(
    cForeground &a_foreground,
    cBackground &a_background,
    cint_t        &a_attributes
) const
{
    return _setAttributes_impl(a_foreground, a_background, a_attributes);
}
Exemplo n.º 2
0
//-------------------------------------------------------------------------------------------------
inline std::tstring_t
Console::setAttributes(
    const ExForeground &a_foreground,
    const ExBackground &a_background,
    cint_t             &a_attributes
) const
{
#if xENV_WIN
    xTEST_DIFF(_wnd, xWND_NATIVE_HANDLE_NULL);
    xTEST_EQ(_stdIn.isValid(), true);
    xTEST_EQ(_stdOut.isValid(), true);
#endif
    // n/a

    return _setAttributes_impl(a_foreground, a_background, a_attributes);
}