I'm using the shell (M-x shell
) to connect to a remote host via SSH. After launching some command line tools (mostly psql, the postgresql command line interface, but man would be the same for example), the shell is giving me the following warning:
WARNING: terminal is not fully functional
- (press RETURN)
As far as I know, this looks like a pager problem. Changing the pager to cat
in my .emacs
file:
(setenv "PAGER" "/bin/cat")
helped me get rid of those messages, but only for local commands (and I do not mind using cat as a pager). As I only have one local instance of Emacs, is there a way to use a different pager on the remote host? Or any other way to get rid of the warning messages, if possible without switching to ansi-term
? If it's of any help, I'm using GNU Emacs 24.3.1.
M-x ansi-term
to run a fully-functional terminal, rather than usingM-x shell
.