Ask Your Question
1

OS Commands

asked 2019-07-16 06:27:59 -0600

Michael gravatar image

updated 2019-07-16 09:14:26 -0600

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-07-16 07:33:22 -0600

Unfortunately OS Commands doesn't implement full terminal emulation, although this is a case we should try to add so I'm marking this as a feature request.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-07-16 06:27:59 -0600

Seen: 543 times

Last updated: Jul 16