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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
kc's avatar
11
kc
asked 4 years ago
Wingware Support's avatar
4.2k
Wingware Support
updated 4 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 4 years ago
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 (4 years ago)
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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)