make emacs runnable in the terminal

That's just the only issue I found so far with running emacs in the terminal.