From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.help Subject: Re: WARNING: terminal is not fully functional Date: 29 May 2003 15:18:42 +0100 Organization: Dept of Computer Science, University of Manchester, U.K. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054220789 5332 80.91.224.249 (29 May 2003 15:06:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 29 May 2003 15:06:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 29 17:06:28 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 19LOyh-0001MI-00 for ; Thu, 29 May 2003 17:06:03 +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 19LOyq-0008Fp-FG for gnu-help-gnu-emacs@m.gmane.org; Thu, 29 May 2003 11:06:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.teledanmark.no!zen.net.uk!130.88.203.18.MISMATCH!peernews.mcc.ac.uk!cs.man.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: rpc71.cs.man.ac.uk Original-X-Trace: wapping.cs.man.ac.uk 1054217922 23062 130.88.198.228 (29 May 2003 14:18:42 GMT) Original-X-Complaints-To: news@wapping.cs.man.ac.uk Original-NNTP-Posting-Date: Thu, 29 May 2003 14:18:42 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93 Original-Xref: shelby.stanford.edu gnu.emacs.help:113854 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:10348 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10348 >>>>> "Irving" == Irving Kimura writes: Irving> I find it infuriating that M-x shell does not give me a Irving> fully functional bash (or rather, a fully functional Irving> terminal). For instance, I can't pipe things through less Irving> ("WARNING: terminal is not fully functional"). And /bin/ls Irving> --color results in gobbledygook. Etc. This sounds to me like the system is just not recognising the terminal type. I used to have this problem with ssh if I remember, as it thought the terminal was no interactive. Irving> Of course, my main reason for using M-x shell is to be able Irving> to treat stdout as any other Emacs buffer. (In particular, Irving> I find it very useful to be able to easily copy selected Irving> chunks of stdout to another Emacs buffer.) Is this Irving> capability fundamentally antithetical to a "fully functional Irving> terminal" that would allow me to pipe outputs through less, less is not going to work because its a pager. Nor is anything using ncurses interfaces. You don't need less though. You can page back using normal emacs buffer commands. Irving> run /bin/ls --color, run man, run top, etc? If not, is Irving> there any way to configure Emacs so that M-x shell operates Irving> under a "fully functional terminal"? I think that there is a ansi-color package around somewhere, which turns the colour codes into colour. In fact I've just found it. Type M-x ansi-color-for-comint and it all works. Cheers Phil