From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: WARNING: terminal is not fully functional Date: 31 May 2003 19:28:20 +1000 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8765nrtqh7.fsf@tiger.rapttech.com.au> References: Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054372436 6508 80.91.224.249 (31 May 2003 09:13:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 31 May 2003 09:13:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 31 11:13:54 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19M2R0-0001gq-00 for ; Sat, 31 May 2003 11:13:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19M2SY-0007Ia-MN for gnu-help-gnu-emacs@m.gmane.org; Sat, 31 May 2003 05:15:30 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 50 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-NNTP-Posting-Host: ppp1721.nsw.padsl.internode.on.net Original-X-Trace: duster.adelaide.on.net 1054372493 ppp1721.nsw.padsl.internode.on.net (31 May 2003 18:44:53 +0950) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!enews.sgi.com!news.xtra.co.nz!news.mel.connect.com.au!news.ade.connect.com.au!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:113911 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10405 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10405 >>>>> "lawrence" == lawrence mitchell writes: lawrence> Irving Kimura wrote: >> I find it infuriating that M-x shell does not give me a fully >> functional bash (or rather, a fully functional terminal). For >> instance, I can't pipe things through less ("WARNING: terminal is >> not fully functional"). And /bin/ls --color results in >> gobbledygook. Etc. >> Of course, my main reason for using M-x shell is to be able to >> treat stdout as any other Emacs buffer. (In particular, I find it >> very useful to be able to easily copy selected chunks of stdout to >> another Emacs buffer.) Is this capability fundamentally >> antithetical to a "fully functional terminal" lawrence> No, but the way Emacs interacts with the external shell, lawrence> claiming to be a dumb terminal, is. I think. >> that would allow me to pipe outputs through less, run /bin/ls >> --color, run man, run top, etc? If not, is there any way to >> configure Emacs so that M-x shell operates under a "fully >> functional terminal"? lawrence> For the ls --color, you need to do M-x lawrence> ansi-color-for-comint-mode-on RET, or add it to some hook. lawrence> This will then correctly parse the colour escapes. lawrence> Regarding the others, there would seem to be no need to lawrence> pipe things through less when running a shell inside Emacs. lawrence> After all, the Emacs buffer has scrollback anyway. I can lawrence> still use less within an Emacs shell buffer, it just lawrence> doesn't work that well. For man pages, you could try M-x lawrence> man RET, which reformats man pages for viewing within lawrence> Emacs. lawrence> I'm not sure what to do for top, I think there's an lawrence> interface to it somewhere, but I can't remember anything lawrence> less vague than that. >> Thanks!!! The view-process mode for emacs provides a 'top' equivalent. Not sure where to find it though. Maybe do a google. Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!