First time here? Check out the FAQ!

Revision history  [back]

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.

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.