I've been trying to use Zsh within my emacs session, without emacs remapping all the Zsh keys. I found ansi-term works pretty well for this but, I'm still having some problems. I was getting lots of junk characters outputted with, I was able to fix it with:
## Setup proper term information for emacs ansi-term mode
[[ $TERM == eterm-color ]] && export TERM=xterm
But everything still doesn't work perfectly. Now I am having trouble with output being drawn offscreen , especially when using something like C-r for search.
What I found is that it works fine if you don't resize the window. I can reproduce it like:
- Launch a clean
emacs -q
- Start
ansi-term
and usezsh
- Make window fullscreen
- Output something that fills the screen
- Type C-r
- The prompt will be off the screen
Maybe there is some way I can make the space between the output and the minibuffer larger to compensate for the overshoot?
Anyone else have Zsh + Ansi-term working properly?