unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* M-x term & less -c
@ 2008-03-06  3:28 Mark Plaksin
  2008-03-06  4:19 ` Dan Nicolaescu
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Plaksin @ 2008-03-06  3:28 UTC (permalink / raw)
  To: emacs-devel

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-06 13:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06  3:28 M-x term & less -c Mark Plaksin
2008-03-06  4:19 ` Dan Nicolaescu
2008-03-06 13:38   ` Mark Plaksin

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