How to clear the console in python
ThatOneGuy1234

I'm trying to make a console based game in python, but I want to clear the text that has accumulated in the console. Is there a certain command for this or will I just have to live with it?

You are viewing a single comment. View All
Coder100

Sure

easy, right?

ThatOneGuy1234

@Coder100 Thanks!

Coder100
JonahElias

@Coder100 I tried this in PyCharm and it said
TERM environment variable not set.

Coder100

@JonahElias then set the TERM env variable?

Coder100

technically it should work no matter what, in the backend, in C:

which works on all windows and linux
@JonahElias

JonahElias

@Coder100 but what does that mean?

Coder100

wdym what does it mean, ig your environment is just weird @JonahElias

JonahElias

@Coder100 okay thanks

GulliverM

obtw os.system() is used for running bash