[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: page-at-a-time output for M-x shell
From: |
Pascal J. Bourguignon |
Subject: |
Re: page-at-a-time output for M-x shell |
Date: |
Sat, 11 Jul 2009 15:56:22 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) |
Francis Moreau <francis.moro@gmail.com> writes:
> Hello,
>
> M-x term has a nice feature 'page-at-a-time' which I'd like to have in
> M-x shell specially because commands like
>
> $ cmd-with-a-lof-of-output | less
> WARNING: terminal is not fully functional
> - (press RETURN)
>
> doesn't work properly.
>
> Does anybody know some trick here ?
I've got:
----(~/.emacs_bash)-----------------------------------------------------
unset LC_MONETARY
unset LC_NUMERIC
unset LC_MESSAGES
unset LC_COLLATE
unset LC_CTYPE
unset LC_TIME
export LC_CTYPE=en_US.UTF-8
export PAGER=cat
export TERM=emacs
alias less=cat
alias more=cat
stty rows 10000 columns 80
echo '# welcome to emacs shell'
------------------------------------------------------------------------
Then I use PgUp and PgDn after a cmd-with-a-lot-of-output
--
__Pascal Bourguignon__