added: tty support for emacs