unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark Plaksin <happy@mcplaksin.org>
To: emacs-devel@gnu.org
Subject: M-x term & less -c
Date: Wed, 05 Mar 2008 22:28:23 -0500	[thread overview]
Message-ID: <ws7iggsf8o.fsf@stone.tss.usg.edu> (raw)

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 :)





             reply	other threads:[~2008-03-06  3:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06  3:28 Mark Plaksin [this message]
2008-03-06  4:19 ` M-x term & less -c Dan Nicolaescu
2008-03-06 13:38   ` Mark Plaksin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ws7iggsf8o.fsf@stone.tss.usg.edu \
    --to=happy@mcplaksin.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).