Hi, I would like to clear the terminal window to display sensor readouts.
I used to use console.clear on VB.
Code: Select all
import os
os.system('clear')Code: Select all
os.system('printf "\033c"')Code: Select all
print ("\033c")Do you have the correct TERM setting?PS1981 wrote:Your method however doesn't actually clear the console screen, it just pushes everything out of sight.
when I were a lad...SN wrote:oh the wonders of ANSI escape codes.... takes me straight back to 1990