initialize terminal for applications

Applications should disable echoing in their terminal like the server
does, otherwise applications like text editors will mess up the terminal
when they exit.