I want to print some strings in more than one line and then clear it and overwrite some other strings in stdout.
I know about \r
to return and overwrite the current line, but I want to clear every lines in stdout.
and I also know about os.system('clear')
to clear the screan but I don't want to clear the whole screen because it clears everything including the commands has been run before running this script and shell statuses.