From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: suppressing gdb subprocess control characters? (was Re: emacs gdb subproccess ignores printf (stdout isn't flushed ?) on OS X) Date: Mon, 21 Feb 2005 01:21:04 +0100 Message-ID: <3c01be8c8784d3467554184d9a0aafbe@Web.DE> References: <16a8b914050220111754b1cb75@mail.gmail.com> <8672e8beacc740604ebf814ed7a1a433@Web.DE> <16a8b91405022015087591595d@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108946319 15159 80.91.229.2 (21 Feb 2005 00:38:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2005 00:38:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 21 01:38:39 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D31an-0006ya-8B for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Feb 2005 01:38:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D31rd-0003Q5-Nu for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2005 19:55:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D31rP-0003Nx-MU for help-gnu-emacs@gnu.org; Sun, 20 Feb 2005 19:55:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D31pf-0002qp-23 for help-gnu-emacs@gnu.org; Sun, 20 Feb 2005 19:54:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D31pY-0002oj-CV for help-gnu-emacs@gnu.org; Sun, 20 Feb 2005 19:53:44 -0500 Original-Received: from [217.72.192.226] (helo=smtp08.web.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D31Jz-00041L-ES for help-gnu-emacs@gnu.org; Sun, 20 Feb 2005 19:21:07 -0500 Original-Received: from [80.184.132.89] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.103 #192) id 1D31Jx-0006hZ-00; Mon, 21 Feb 2005 01:21:05 +0100 In-Reply-To: <16a8b91405022015087591595d@mail.gmail.com> Original-To: Mike Garey X-Mailer: Apple Mail (2.619.2) X-Sender: Peter_Dyballa@web.de 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24207 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24207 Am 21.02.2005 um 00:08 schrieb Mike Garey: > ^[[2A > ^[[0Khello, world! gdb or Emacs or both think they're running in a DEC terminal or such, so they're sending ANSI escape codes to it to position the text somewhere on the terminal's screen, or to set it bold, blinking, ... Since I haven't used gdb for so many years I actually have no idea -- have you seen the invisible directory .MacOSX in you home directory? It contains a file environment.plist. To edit it you'll need some of the Developer Tools, the Property List Editor, in /Developer/Applications/Utilities. Just type in Terminal (or Carbon Emacs) "open ~/.MacOSX/environment.plist" and it'll appear. Now you could add a new environment variable TERM and give it the value emacs, or dumb. But be careful: some applications might fail after a new login (that's needed to make the new setting/sibling active)! A less dangerous setting would be in the gdb section. AFAIR you can trim its run-time environment. Maybe here's a choice to set the TERMinal value to something dumb, something that can't be controlled by ANSI escape sequences. Just read a bit of the documentation! -- Greetings Pete One doesn't expect governments to obey the law because of some higher moral development. One expects them to obey the law because they know that if they don't, those who aren't shot will be hanged. --Michael Shirley