From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [dalias@aerifal.cx: ansi-term \e[J causes spurious newline [revised report]] Date: Wed, 21 Mar 2007 15:16:38 -0400 Message-ID: <87ps724dbd.fsf@stupidchicken.com> References: <87zm66o80a.fsf@stupidchicken.com> <200703211840.l2LIem6A013375@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 1174504652 23222 80.91.229.12 (21 Mar 2007 19:17:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2007 19:17:32 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 21 20:17:24 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 1HU6JI-00019A-9c for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 20:17:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU6Kz-0003o5-So for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 14:19:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HU6Kv-0003jq-Uh for emacs-devel@gnu.org; Wed, 21 Mar 2007 15:19:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU6Kv-0003ij-EC for emacs-devel@gnu.org; Wed, 21 Mar 2007 14:19:05 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HU6JD-0004zq-1p; Wed, 21 Mar 2007 15:17:19 -0400 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l2LJHH3T002441; Wed, 21 Mar 2007 14:17:17 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l2LJGdr3007749; Wed, 21 Mar 2007 15:16:39 -0400 (EDT) Original-Received: from localhost (MAIN-TWELVE-TWO-FIFTY-SIX.MIT.EDU [18.19.6.1]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l2LJGcvD027714; Wed, 21 Mar 2007 15:16:38 -0400 (EDT) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HU6IY-0003o9-00; Wed, 21 Mar 2007 15:16:38 -0400 In-Reply-To: <200703211840.l2LIem6A013375@oogie-boogie.ics.uci.edu> (Dan Nicolaescu's message of "Wed\, 21 Mar 2007 11\:40\:48 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: 0 X-detected-kernel: Solaris 9.1 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:68248 Archived-At: 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?