Console clear screen
Posted: Wed Oct 21, 2020 1:04 pm
Hello,
i've been printing some values to console, like fps for instance, but it writes it in a new line every second (used print()). Is there any way to clear the console to make it print value on the same position in console, clearing the screen in between? I tried to use os.execute('cls'), but it gives me weird results (attached).
Thanks!
i've been printing some values to console, like fps for instance, but it writes it in a new line every second (used print()). Is there any way to clear the console to make it print value on the same position in console, clearing the screen in between? I tried to use os.execute('cls'), but it gives me weird results (attached).
Thanks!