Added TERM=xterm env var and `clear` screen code processing.