From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Plaksin Newsgroups: gmane.emacs.devel Subject: M-x term & less -c Date: Wed, 05 Mar 2008 22:28:23 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204774131 32208 80.91.229.12 (6 Mar 2008 03:28:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2008 03:28:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 06 04:29:18 2008 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 1JX6nG-0006n8-G8 for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2008 04:29:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JX6mi-00048S-Um for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 22:28:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JX6mf-00048D-2T for emacs-devel@gnu.org; Wed, 05 Mar 2008 22:28:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JX6md-000481-Ji for emacs-devel@gnu.org; Wed, 05 Mar 2008 22:28:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JX6md-00047y-En for emacs-devel@gnu.org; Wed, 05 Mar 2008 22:28:39 -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 1JX6md-00059D-Ah for emacs-devel@gnu.org; Wed, 05 Mar 2008 22:28:39 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JX6mV-00076v-TS for emacs-devel@gnu.org; Thu, 06 Mar 2008 03:28:31 +0000 Original-Received: from stone.tss.usg.edu ([168.24.82.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Mar 2008 03:28:31 +0000 Original-Received: from happy by stone.tss.usg.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Mar 2008 03:28:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: stone.tss.usg.edu User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:SP/U8l5hWYidQXjmBGCPtuT+Mi4= X-detected-kernel: by monty-python.gnu.org: 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:91463 Archived-At: term doesn't clear the screen at the right time when you run 'less -c'. I've noticed this on and off when piping commands through less. If the command takes a few moments to run you can see the problem. Here's a simple way to reproduce it with Emacs CVS as of a March 3rd: emacs -Q M-x term RET RET Inside the term, type 'sleep 5 | less -c'. '-c' tells less to clear the screen first thing. The screen doesn't clear until the sleep exits. Run 'sleep 5 | less -c' again in the same term--the bottom half of the screen clears and the top half is filled with lines containing only "~". After sleep exits you get what you expect--the entire screen is cleared and less is waiting for you to quit. term-start-output-log says that before the sleep exits, less sends one ^M for every line in my window and then sends ESC[HESC[JESC[H. After the sleep exits, there is one of these lines for each line on my window: ESC[00;31m~ESC[0mESC Well, on the last line it actually draws "(END)" but surely that's not relevant :)