First time here? Check out the FAQ!

Revision history  [back]

os commands

I have a debug output in a loop:

 print(f"Progress: {percent}% ({cnt}/{all} files)", end="\r")

In a 'normal' terminal, the line ending is respected and the visual output only follows the changing percent and cnt inline, without showing a new line every time. The 'OS Commands' terminal on the other hand looks like

Progress: 1% (3778/265716 files)
Progress: 1% (3779/265716 files)
Progress: 1% (3780/265716 files)

Can this behavior be changed?

os commands

I have a debug output in a loop:

 print(f"Progress: {percent}% ({cnt}/{all} files)", end="\r")

In a 'normal' terminal, the line ending is respected and the visual output only follows the changing percent and cnt inline, without showing a new line every time. The 'OS Commands' terminal on the other hand looks like

Progress: 1% (3778/265716 files)
Progress: 1% (3779/265716 files)
Progress: 1% (3780/265716 files)

Can this behavior be changed?

os commands

I have a debug output in a loop:

 print(f"Progress: {percent}% ({cnt}/{all} files)", end="\r")

In a 'normal' terminal, the line ending is respected and the visual output only follows the changing percent and cnt inline, without showing a new line every time. The 'OS Commands' command' terminal on the other hand looks like

Progress: 1% (3778/265716 files)
Progress: 1% (3779/265716 files)
Progress: 1% (3780/265716 files)

Can this behavior be changed?

os commands

I have a debug output in a loop:

 print(f"Progress: {percent}% ({cnt}/{all} files)", end="\r")

In a 'normal' terminal, the line ending is respected and the visual output only follows the changing percent and cnt inline, without showing a new line every time. The 'OS command' terminal on the other hand looks like

Progress: 1% (3778/265716 files)
Progress: 1% (3779/265716 files)
Progress: 1% (3780/265716 files)

Can this behavior be changed?