First time here? Check out the FAQ!
1

Tried to use os.system('clear') but had a problem.

Hi all,

This is my script:

from os import system

system('clear')

print('\nI am here!')

This is what displayed:

ESC[HESC[2J

I am here!

I am using MacOS Big Sur, Wing Pro 7.2.8.0 (rev 87ca750566c6) with python 3.9

Thank you in advance.

kc's avatar
11
kc
asked 2021-01-18 10:19:50 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2021-01-19 10:32:03 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

This is due to Wing's Debug I/O tool not being a terminal emulator. It should work in an external console that can be enabled by using Configure External Console on the Options menu of the Debug I/O tool.

Wingware Support's avatar
4k
Wingware Support
answered 2021-01-19 08:58:08 -0500
edit flag offensive 0 remove flag delete link

Comments

Hi, I followed your instruction and it worked fine. It seems that PyCharm is a bit easier for me to deal with than Wing. Just have to keep learning, I guess!

Thank you very much.

kc's avatar kc (2021-01-20 02:04:39 -0500) edit
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