[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: page-at-a-time output for M-x shell
From: |
Thierry Volpiatto |
Subject: |
Re: page-at-a-time output for M-x shell |
Date: |
Sun, 12 Jul 2009 16:52:02 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
Hi all,
If you use eshell you can call easily term for the commands that need it:
,----
| (when (require 'em-term)
| (dolist (i '("kop" "ledger" "mc" "htop"))
| (add-to-list 'eshell-visual-commands i)))
`----
This code add the commands kop, ledger, mc, htop to
`eshell-visual-commands'.
That mean when you run one of these commands in eshell, they are
executed in term.
At the end the term buffer is killed and you are back in eshell.
Richard Riley <rileyrgdev@gmail.com> writes:
> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> On 2009-07-11 06:14 (-0700), Francis Moreau wrote:
>>
>>> 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 ?
>>
>> Emacs shell is a "dump" terminal which doesn't support (all) terminal
>> control codes. You need to use "M-x term" if you want a proper terminal
>> (but even that is not as good as the good old XTerm).
>
> http://www.emacswiki.org/emacs/download/multi-term.el
>
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
- Re: page-at-a-time output for M-x shell, (continued)
- Re: page-at-a-time output for M-x shell, Barry Margolin, 2009/07/13
- Re: page-at-a-time output for M-x shell, Miles Bader, 2009/07/14
- Re: page-at-a-time output for M-x shell, Francis Moreau, 2009/07/14
- Re: page-at-a-time output for M-x shell, Pascal J. Bourguignon, 2009/07/14
- Re: page-at-a-time output for M-x shell, Barry Margolin, 2009/07/14
- Message not available
- Re: page-at-a-time output for M-x shell, Richard Riley, 2009/07/13
Re: page-at-a-time output for M-x shell, Teemu Likonen, 2009/07/12
Re: page-at-a-time output for M-x shell, Pascal J. Bourguignon, 2009/07/13