I'm trying to run git commands in eshell. When I run:
git log -p
it will look like this:
Notice that ^[[k before the cursor. Arrow key down does not work, it will gives error says 'Not found'. You can see that at minibuffer. The only way to scroll down is to use RETURN key, and it looks quite messy:
My $TERM is set to eterm, and I tried ansi too. They are the same. Anyone has experienced this before?
Thanks
Edit:
I have a way to work this around. I created this function:
(defun eshell/git (&rest args)
(apply 'eshell-exec-visual (cons "git" args)))
So every time when I run git command, it will launch the output in a *git* buffer.
If you have other ways, please let me know as well.