First time here? Check out the FAQ!
1

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?

Michael's avatar
171
Michael
asked 2019-07-16 06:27:59 -0500, updated 2019-07-16 09:14:26 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

Wingware Support's avatar
4k
Wingware Support
answered 2019-07-16 07:33:22 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer