|
|
|
@ -78,7 +78,6 @@ namespace spdlog {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename ConsoleMutex>
|
|
|
|
|
void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::flush()
|
|
|
|
|
{
|
|
|
|
@ -120,8 +119,7 @@ namespace spdlog {
|
|
|
|
|
template<typename ConsoleMutex>
|
|
|
|
|
WORD SPDLOG_INLINE wincolor_sink<ConsoleMutex>::set_console_attribs(WORD attribs)
|
|
|
|
|
{
|
|
|
|
|
in_console_
|
|
|
|
|
CONSOLE_SCREEN_BUFFER_INFO orig_buffer_info;
|
|
|
|
|
in_console_ CONSOLE_SCREEN_BUFFER_INFO orig_buffer_info;
|
|
|
|
|
::GetConsoleScreenBufferInfo(out_handle_, &orig_buffer_info);
|
|
|
|
|
WORD back_color = orig_buffer_info.wAttributes;
|
|
|
|
|
// retrieve the current background color
|
|
|
|
@ -139,7 +137,6 @@ namespace spdlog {
|
|
|
|
|
::WriteConsoleA(out_handle_, formatted.data() + start, size, nullptr, nullptr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename ConsoleMutex>
|
|
|
|
|
void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::write_to_file_(const fmt::memory_buffer &formatted)
|
|
|
|
|
{
|
|
|
|
|