We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dbae41 commit 4fe961fCopy full SHA for 4fe961f
include/fmt/format-inl.h
@@ -1434,6 +1434,7 @@ extern "C" __declspec(dllimport) int __stdcall WriteConsoleW( //
1434
FMT_FUNC bool write_console(std::FILE* f, string_view text) {
1435
int fd = _fileno(f);
1436
if (!_isatty(fd)) return false;
1437
+ std::fflush(f);
1438
auto u16 = utf8_to_utf16(text);
1439
return WriteConsoleW(reinterpret_cast<void*>(_get_osfhandle(fd)), u16.c_str(),
1440
static_cast<dword>(u16.size()), nullptr, nullptr) != 0;
0 commit comments