Added OS detection to pick the clear-screen command and added KeyboardInterrupt handling