I used 'M-x shell' to start a shell inside a buffer. Then I tried to run git diff
After I press the space bar a few time, the lines 29-69/69
line is printed a few and the shell has stopped responding.
Why it is the case? Is there anything to fix it?
EDIT
Did not see this error message when I used shell last time:
(I alias g
to git
)
Now I am not able to use git diff
at all.
M-x shell
or something else?M-x shell
is a dumb terminal, whereas it looks like the commands you're using are wanting a more full-functional terminal. In this case, it might just be wanting to invoke a pager. You could set yourGIT_PAGER
environment variable, or thecore.pager
git config option. Or else just use an actual terminal emulator instead ofshell-mode
. Emacs has one built in:M-x term
(oransi-term
).M-x term
is the answer. If you can post it as an answer to this question, i will accept it.