commandline: Run emacs in xterm

By setting the envionment variable TERM to "xterm" when running emacs, some
key combinations, such as Ctrl+arrow get properly mapped. Although this
is just a workaround, for the time being, it does the job.