help-gnu-emacs
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]