zsh-users
 help / color / mirror / code / Atom feed
* Zsh and ReGIS graphics.
@ 2019-05-26 17:55 Grant Taylor
  2019-06-02 16:08 ` Grant Taylor
  0 siblings, 1 reply; 6+ messages in thread
From: Grant Taylor @ 2019-05-26 17:55 UTC (permalink / raw)
  To: Zsh Users List

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

Hi,

I'm playing with ReGIS graphics (in XTerm) and have noticed that things 
display differently depending on the line that the prompt is on.

It seems as if Zsh clears the remainder of the screen after the end of 
the prompt line.

If I clear the screen (^L) and then display the ReGIS graphic, the 
graphic flashes and then goes away.  I think this is because Zsh is 
redisplaying the prompt immediately after the cat command.  If I hit 
enter a number of times to cause the prompt to move further down the 
screen, such that it's in the graphic or below it, the part of the 
graphic that is above the prompt stays.

On a whim I tried Bash and it does not seem to suffer from this same 
clearing of the remainder of the screen issue.

Is this a Zsh setting?

I tried searching the zshall man page, and it seems as if all instances 
of "clear" either don't have to do with the screen or clear the entire 
screen.

Does anyone have any idea if this is a Zsh thing?  Or possibly something 
spurious I have in my prompt?

Any help / pointers would be appreciated.



-- 
Grant. . . .
unix || die


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4008 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Zsh and ReGIS graphics.
@ 2019-06-30  0:07 Ross Combs
  2019-06-30  2:55 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Ross Combs @ 2019-06-30  0:07 UTC (permalink / raw)
  To: zsh-users

[-- 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

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

end of thread, other threads:[~2019-06-30 18:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-26 17:55 Zsh and ReGIS graphics Grant Taylor
2019-06-02 16:08 ` Grant Taylor
2019-06-30  0:07 Ross Combs
2019-06-30  2:55 ` Bart Schaefer
2019-06-30 11:25   ` Ross Combs
2019-06-30 18:13   ` Grant Taylor

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