mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
flush() after writing reset to stream
This commit is contained in:
parent
a4ddfc4a58
commit
f733b10876
@ -202,6 +202,7 @@ class ColoredStream(Detect):
|
|||||||
return
|
return
|
||||||
if self.isansi:
|
if self.isansi:
|
||||||
self.stream.write(RESET)
|
self.stream.write(RESET)
|
||||||
|
self.stream.flush()
|
||||||
elif self.set_console is not None:
|
elif self.set_console is not None:
|
||||||
self.set_console(self.file_handle, self.default_console_text_attributes)
|
self.set_console(self.file_handle, self.default_console_text_attributes)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user