mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 18:54:31 +02:00
flush() after writing reset to stream
This commit is contained in:
parent
a4ddfc4a58
commit
f733b10876
1 changed files with 1 additions and 0 deletions
|
|
@ -202,6 +202,7 @@ def __exit__(self, *args, **kwargs):
|
|||
return
|
||||
if self.isansi:
|
||||
self.stream.write(RESET)
|
||||
self.stream.flush()
|
||||
elif self.set_console is not None:
|
||||
self.set_console(self.file_handle, self.default_console_text_attributes)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue