print "\x1b[2J\x1b[0;0H"; # erase screen, set cursor to top left