unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: bug-gnu-emacs@gnu.org
Subject: ansi-term \e[J causes spurious newline
Date: Fri, 16 Mar 2007 02:14:17 -0400	[thread overview]
Message-ID: <20070316061417.GA27392@brightrain.aerifal.cx> (raw)

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

                 reply	other threads:[~2007-03-16  6:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20070316061417.GA27392@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=bug-gnu-emacs@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).