From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: [dalias@aerifal.cx: ansi-term \e[J causes spurious newline [revised report]] Date: Thu, 22 Mar 2007 11:36:43 +0900 Organization: NEC Electronics Message-ID: References: <87zm66o80a.fsf@stupidchicken.com> <200703211840.l2LIem6A013375@oogie-boogie.ics.uci.edu> <87ps724dbd.fsf@stupidchicken.com> <200703212016.l2LKGo67015610@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174531036 15079 80.91.229.12 (22 Mar 2007 02:37:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2007 02:37:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 22 03:37:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HUDAo-00030j-Rc for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2007 03:37:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUDCY-0004eR-BA for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 21:38:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HUDCV-0004eM-G0 for emacs-devel@gnu.org; Wed, 21 Mar 2007 22:38:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HUDCT-0004e9-21 for emacs-devel@gnu.org; Wed, 21 Mar 2007 22:38:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUDCS-0004e6-TD for emacs-devel@gnu.org; Wed, 21 Mar 2007 21:38:48 -0500 Original-Received: from main.gmane.org ([80.91.229.2] 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 1HUDAi-0002OC-4I for emacs-devel@gnu.org; Wed, 21 Mar 2007 22:37:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HUDAc-0004VB-QB for emacs-devel@gnu.org; Thu, 22 Mar 2007 03:36:54 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Mar 2007 03:36:54 +0100 Original-Received: from miles.bader by fencepost.gnu.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Mar 2007 03:36:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: fencepost.gnu.org System-Type: i686-pc-linux-gnu Blat: Foop Cancel-Lock: sha1:9Bwvg8ZLBGCNVM2U10Tyz43zp8k= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68265 Archived-At: Dan Nicolaescu writes: > \e[J is the terminfo "ed" string, the terminfo manual says: > > Ed is only defined from the first column of a line. (Thus, it > can be simulated by a request to delete a large number of > lines, if a true ed is not available.) ... > > On the other hand, using "echo" in ansi-term does produce a different > > result from doing it in xterm. Isn't that divergent behavior? > > It different behavior for undefined behavior, so it's fine. Is it the escape sequence "\e[J" actually undefined on a real terminal in that case, or is merely the more abstract "ed" terminfo capability which is undefined in that case? [AFAIK, "term.el" tries to emulate a terminal, not merely the subset of the terminal as viewed through terminfo.] -Miles -- Americans are broad-minded people. They'll accept the fact that a person can be an alcoholic, a dope fiend, a wife beater, and even a newspaperman, but if a man doesn't drive, there is something wrong with him. -- Art Buchwald