emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-x shell hides output if given CR


From: Chris Moore
Subject: Re: M-x shell hides output if given CR
Date: Thu, 19 Oct 2006 14:25:20 +0200

On Thu, 2006-10-19 at 10:46 +0200, Kim F. Storm wrote:
> 
> Dan Jacobson <address@hidden> writes:
> > Gentlemen, don't let M-x shell hide the facts,
> > $ LC_ALL=C LANG=C LC_CTYPE=C emacs -Q
> > M-x shell
> > $ echo -e 'bla\r ' #hides output!
> 
> What is the value of selective-display in the M-x shell buffer?

I think what's going on here is that when Emacs sees a carriage return
character, it moves the cursor back to the beginning of the line without
moving down a line.

Lots of programs rely on this behaviour to get 'animated' displays (see
wget, apt-get, etc).

For example, run the following to see an 'animated' time display on a
single line:

  while :; do date | tr \\012 \\015; sleep 1; done

Chris.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]