replace the terminal