Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc4be0a

Browse files
committed
Minor fix
1 parent e381158 commit fc4be0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,8 @@ def clearConsoleLine(forceOutput=False):
15181518
Clears current console line
15191519
"""
15201520

1521-
dataToStdout("\r%s\r" % (" " * (getConsoleWidth() - 1)), forceOutput)
1521+
if getattr(LOGGER_HANDLER, "is_tty", False):
1522+
dataToStdout("\r%s\r" % (" " * (getConsoleWidth() - 1)), forceOutput)
15221523

15231524
kb.prependFlag = False
15241525
kb.stickyLevel = None

0 commit comments

Comments
 (0)