From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: [dalias@aerifal.cx: ansi-term \e[J causes spurious newline [revised report]] Date: Wed, 21 Mar 2007 13:16:50 -0700 Message-ID: <200703212016.l2LKGo67015610@oogie-boogie.ics.uci.edu> References: <87zm66o80a.fsf@stupidchicken.com> <200703211840.l2LIem6A013375@oogie-boogie.ics.uci.edu> <87ps724dbd.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174508325 3771 80.91.229.12 (21 Mar 2007 20:18:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2007 20:18:45 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 21 21:18:29 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 1HU7GB-0002lN-40 for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 21:18:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU7Hs-0006fK-Q7 for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 15:20:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HU7Hp-0006cf-Bo for emacs-devel@gnu.org; Wed, 21 Mar 2007 16:19:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HU7Hm-0006ZY-28 for emacs-devel@gnu.org; Wed, 21 Mar 2007 16:19:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU7Hl-0006ZO-Sw for emacs-devel@gnu.org; Wed, 21 Mar 2007 15:19:53 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HU7G0-0003Tr-4S; Wed, 21 Mar 2007 16:18:04 -0400 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id l2LKGo67015610; Wed, 21 Mar 2007 13:16:50 -0700 (PDT) In-Reply-To: <87ps724dbd.fsf@stupidchicken.com> (Chong Yidong's message of "Wed\, 21 Mar 2007 15\:16\:38 -0400") Original-Lines: 18 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0.69, required 5, autolearn=disabled, ALL_TRUSTED -1.44, FM_MULTI_ODD2 1.10, FS_OBFU_X 1.03) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: Solaris 9 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:68253 Archived-At: Chong Yidong writes: > Dan Nicolaescu writes: > > > > > echo -e 'hello\e[Jworld' > > > > > > > > On a vt100/ansi/ecma compatible terminal, this should leave > > > > "helloworld" visible on the screen, with everything afterward cleared. > > > > On GNU emacs' ansi-term, it prints hello on one line and world on the > > > > next, after clearing to the end of the screen. > > > > In general tests using "echo" are not good enough, the correct way to > > do it is to use "tput", there are some subtleties involved... > > 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.