I've been Googling around and looking at Emacs built-in help but I have yet to determine how to scroll up (or down) in Emacs ansi-term.
I'm using Emacs 23.3.1, OS X, in iTerm2. Thanks!
Edit: I've noticed most the advice people give me doesn't work in ansi-term but does work in eshell. I have since moved to eshell.
In general, if you don't need full screen terminal emulation, shell
or eshell
are better choices.
However, if you decide to stick with ansi-term
, press C-c C-j to go into line mode. Then you can move around normally with the usual cursor movement keys. Press C-c C-k to get back into char mode to interact with the terminal.
Alternatively, you can scroll backwards a screen at a time with C-c C-v and just enter text to scroll back to the terminal input point.
Take a look at the Emacs documentation on term-mode
(most of which applies equally to ansi-term
) for more information.
Shift-page up/down (in Emacs-speak, S-prior
/S-next
) will work using the default bindings.
(While the normal C-h m
/C-h b
don't work to see mode information and bindings in this mode, you can still use C-c M-x describe-mode
/describe-bindings
, or depending on your setup, use F1 or the help key instead of C-h
.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With