From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: page-at-a-time output for M-x shell Date: Sun, 12 Jul 2009 16:52:02 +0200 Organization: ThierryVolpiatto Message-ID: <87skh2q7hp.fsf@tux.homenetwork> References: <30a09a22-cd05-44b6-9b82-8a7e6c1796d5@x3g2000yqa.googlegroups.com> <87skh29ir6.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247410761 8543 80.91.229.12 (12 Jul 2009 14:59:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2009 14:59:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 12 16:59:14 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MQ0WF-000765-5w for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2009 16:59:12 +0200 Original-Received: from localhost ([127.0.0.1]:47086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQ0WE-0007GY-Hd for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2009 10:59:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQ0Vt-0007GJ-3x for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 10:58:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQ0Vn-0007G7-OO for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 10:58:47 -0400 Original-Received: from [199.232.76.173] (port=44311 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQ0Vn-0007G4-HY for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 10:58:43 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:35460 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MQ0Vm-0005PW-DL for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 10:58:42 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MQ0Vg-00020I-Ok for help-gnu-emacs@gnu.org; Sun, 12 Jul 2009 14:58:37 +0000 Original-Received: from 86.77.197-77.rev.gaoland.net ([77.197.77.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jul 2009 14:58:36 +0000 Original-Received: from thierry.volpiatto by 86.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jul 2009 14:58:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 86.77.197-77.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHAwNfJRBVTESlTym0 RB/OwKFivhZqAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABeElE QVQ4y3VTW47CMAyMwwUyTfYfUvG/wfC/ET4B0t7/KmsHurRgXFVVPRm/xglhsRj2+npW98G3+Amp tS5BXxl3SqzcXGRuEyf7n5lPA9jXetNPRhE7EJkzfz8YWnIgBSwW95TK4H79/t4GINKNADWj4PgA DiJX/ZxFDzDXeb4oYMw7kNUvyMzcaj3ioICG4hCKEShkPpwQ49Q05nnkGAQLDFDdExjm0qpowBYA Wi61bDlFU1GW0WbY2dSJYX5ZD2S0AiZL+rPyE19TpMzP2IvNWly+NkuWNgD4pO2oL73IQXoSyVX2 NHna7tgadWRXoCdvf2guqEcvGHqZwE520iRD0/QCYiiTE+U21w1Qxvg6iSp9fbIiDCnSAelDkCVF Vn+HekqXzRybwJ40xF4DMRG6SWGK9G1lYzHSxLYEm05GWbpJCB6A9tb9A3BGn2XdwJbS/WuInj74 4QNF8sVFdP3vl+5tgYp4Ev7fyrfFMkXgElDgV4uV/w8TWEeLCIGJ/AAAACV0RVh0Y3JlYXRlLWRh dGUAMjAwOC0wNS0zMVQyMjoxNDoyMiswMjowMM7uH/IAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAy LHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMngyLDF4MSwxeDFJ+qa0AAAAJXRFWHRt b2RpZnktZGF0ZQAyMDA3LTEwLTI4VDE3OjA4OjQ4KzAxOjAwhqNSRgAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:9VI96SIYnm9mEC2E16RtaSOk2lU= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65986 Archived-At: 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 writes: > Teemu Likonen 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