all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* carriage-return no longer works quite right in shell-mode
@ 2008-02-05 19:03 Chris Moore
  2008-02-11  0:17 ` Richard Stallman
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Moore @ 2008-02-05 19:03 UTC (permalink / raw)
  To: emacs-pretest-bug

I recently updated Emacs from the CVS trunk and one of the programs I
run inside a shell-mode buffer has stopped formatting its output
correctly.

It uses carriage return characters to re-write the same line over and
over, and leaves the cursor at the beginning of the line.  Here's a
simplified example that no longer works in Emacs:

#include <stdio.h>
main() {
  int i;
  for (i = 0; i < 10; i++) {
    printf("  count: %d\r", i);
    fflush(stdout);
    sleep(1);
  }
  printf("\n");
}

Instead of re-writing the same part of the buffer over and over, I see:
    count: 0  count: 1  count: 2
in the buffer - the carriage return isn't returning the carriage like
it used to.

I notice that apt-get does still work - that leaves the cursor at the
end of the line, which I guess is the important difference.




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

end of thread, other threads:[~2008-03-05  2:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 19:03 carriage-return no longer works quite right in shell-mode Chris Moore
2008-02-11  0:17 ` Richard Stallman
2008-02-11  2:55   ` Stefan Monnier
2008-02-12 12:24     ` Chris Moore
2008-02-29  8:39     ` Romain Francoise
2008-02-29 11:31       ` Kenichi Handa
2008-02-29 15:21         ` Romain Francoise
2008-03-04 11:44           ` Kenichi Handa
2008-03-04 11:42         ` Kenichi Handa
2008-03-04 15:46           ` Stefan Monnier
2008-03-05  2:00             ` Kenichi Handa

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.