Skip to content

Commit 07e4749

Browse files
committed
printing: MultilineOverwriteConsole caveat
1 parent ce62370 commit 07e4749

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/utils/printing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def __init__(self, stream=None):
3838
def reset(self):
3939
if self.lines and self.overwrite_enabled:
4040
# Move cursor to initial line
41+
# TODO: handle SIGWINCH because lines will need to be recalculated (if the count of wrapped lines changes)
42+
# but this would require storing all printed text between resets() or perhaps using Device Status Report (DSR) sequence [6n
4143
self.stream.write("\x1b[F" * self.lines)
4244
self.stream.write("\x1b[J")
4345
self.lines = 0

0 commit comments

Comments
 (0)