Support emacs terminals