zsh-users
 help / color / mirror / code / Atom feed
From: Ross Combs <rcombs@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Zsh and ReGIS graphics.
Date: Sun, 30 Jun 2019 02:07:49 +0200	[thread overview]
Message-ID: <CAG=oS1VbR0tK=E9e7avYFEQJZPwC-pJwGgJEejJYRaNZaMWi8Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

On Sun, 2 Jun 2019 10:08:50 -0600, Grant Taylor wrote:
>
> On 5/26/19 11:55 AM, Grant Taylor wrote:
>
> > Does anyone have any idea if this is a Zsh thing?  Or possibly
something spurious I have in my
> > prompt?
>
> I don't think it's my prompt. I unset RPROMPT and changed PROMPT to be "#
" and I'm still
> seeing zsh erase content below the prompt line.
>
> Any help / pointers would be appreciated.

I ran typescript zsh.log, then ran zsh inside, control-Led, hit return a
few times, and cat-ed a ReGIS image file.  I can confirm that what you
state happens: the image is cleared from the following line to the end of
the screen.

This appears to be due to zsh emitting a ^[[J before printing the prompt.
I don't know why it does this.  Does zsh sometimes write to parts of the
screen below the current line?

[many lines omitted]
^M
^[\^M
^[[1m^[[7m%^[[27m^[[1m^[[0m
                                                              ^M
^M^M^[[0m^[[27m^[[24m^[[Jusername@hostname ~% ^[[K^[[?2004h^[[?2004l^M^M
^[[?2004h^[[38;5;101musername@hostname:~$ ^[[m^M
^[[?2004l^[[?2004h^[[38;5;101musername@hostname:~$ ^[[m^[[?2004l
[other lines omitted]

I don't have that in my prompt either:
username@hostname ~% set | grep PROMPT
PROMPT='%n@%2m %~%# '

[apologies for the broken message id chain -- I'm not subscribed to this
list so I had to hand-craft this response]

-Ross

             reply	other threads:[~2019-06-30  0:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-30  0:07 Ross Combs [this message]
2019-06-30  2:55 ` Bart Schaefer
2019-06-30 11:25   ` Ross Combs
2019-06-30 18:13   ` Grant Taylor
  -- strict thread matches above, loose matches on Subject: below --
2019-05-26 17:55 Grant Taylor
2019-06-02 16:08 ` Grant Taylor

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG=oS1VbR0tK=E9e7avYFEQJZPwC-pJwGgJEejJYRaNZaMWi8Q@mail.gmail.com' \
    --to=rcombs@gmail.com \
    --cc=zsh-users@zsh.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.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).