unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* ansi-term \e[J causes spurious newline
@ 2007-03-16  6:14 Rich Felker
  0 siblings, 0 replies; only message in thread
From: Rich Felker @ 2007-03-16  6:14 UTC (permalink / raw)
  To: bug-gnu-emacs

Test: echo -e 'hello\e[Jworld'
Should print helloworld and clear to end of the screen. Instead it
prints hello on one line and world on the next, after clearing to the
end of the screen. This bug makes busybox shells' cmdedit
functionality unusable.

Removing the calls to term-unwrap-line from term-erase-in-display
fixes the problem, but I don't know if this has any bad side-effects.

Also, I noticed that \e[1J seems to only erase up to the point. To
emulate VT100's Roman-inspired off-by-one idiosyncracies, it should
erase up to point+1, i.e. also erase the character "under" the
terminal cursor.

~Rich

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-16  6:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16  6:14 ansi-term \e[J causes spurious newline Rich Felker

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