zsh-workers
 help / color / mirror / code / Atom feed
* Re: Minor refresh problem with completion
@ 1999-03-29  8:49 Sven Wischnowsky
  1999-03-30  3:01 ` CLEAREOD (Was: Minor refresh problem with completion) Geoff Wing
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Wischnowsky @ 1999-03-29  8:49 UTC (permalink / raw)
  To: zsh-workers


I wrote:

> Andrej Borsenkow wrote:
> 
> > I have a feeling, that with new completion the complete line is refreshed
> > every time. I noted that, as my display flickers sometimes quite ugly. It's
> > getting worse, when logical line extends over several terminal lines ...
> > Anybody else seen it?
> 
> That's not restricted to the new completion. It's caused by the way
> `clearlist' (the variable that triggers clearing a list that may be
> beneath the prompt) works -- it forces a redisplay of the prompt.
> 
> I tried to do this in a more sophisticated way (moving the cursor
> under the prompt, clear to EOD, move cursor up), but couldn't get it
> to work with the rest of the redisplay code. I'm not one of the most
> knowledgeable persons with respect to the zle redisplay code, so I
> have to ask: can someone come up with a better imlpementation?

Of course, now that I tried it again, it seems to work (at least if
your terminal has the capability of clearing to EOD).

But still, Id' be glad if our refresh-code experts could have a look
at this, because the code now sets the cursor to the last column of
the last prompt line and gives out a TCCLEAREOD -- and doing that when 
not in the first column may be undefined on some terminals if I
remember correctly.

Bye
 Sven

diff -u oos/Zle/zle_refresh.c Src/Zle/zle_refresh.c
--- oos/Zle/zle_refresh.c	Mon Mar 29 10:36:48 1999
+++ Src/Zle/zle_refresh.c	Mon Mar 29 10:41:47 1999
@@ -254,10 +254,18 @@
 	return;
 
     if (clearlist) {
-	invalidatelist();
-	moveto(0, 0);
-	clearflag = 0;
-	resetneeded = 1;
+	if (tccan(TCCLEAREOD)) {
+	    int ovln = vln, ovcs = vcs;
+
+	    moveto(nlnct - 1, columns - 1);
+	    tcout(TCCLEAREOD);
+	    moveto(ovln, ovcs);
+	} else {
+	    invalidatelist();
+	    moveto(0, 0);
+	    clearflag = 0;
+	    resetneeded = 1;
+	}
 	clearlist = 0;
     }
 #ifdef HAVE_SELECT

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Minor refresh problem with completion
@ 1999-03-26  9:08 Sven Wischnowsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 1999-03-26  9:08 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> I have a feeling, that with new completion the complete line is refreshed
> every time. I noted that, as my display flickers sometimes quite ugly. It's
> getting worse, when logical line extends over several terminal lines ...
> Anybody else seen it?

That's not restricted to the new completion. It's caused by the way
`clearlist' (the variable that triggers clearing a list that may be
beneath the prompt) works -- it forces a redisplay of the prompt.

I tried to do this in a more sophisticated way (moving the cursor
under the prompt, clear to EOD, move cursor up), but couldn't get it
to work with the rest of the redisplay code. I'm not one of the most
knowledgeable persons with respect to the zle redisplay code, so I
have to ask: can someone come up with a better imlpementation?

Thanks for the reminder.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Minor refresh problem with completion
@ 1999-03-26  8:38 Andrej Borsenkow
  0 siblings, 0 replies; 4+ messages in thread
From: Andrej Borsenkow @ 1999-03-26  8:38 UTC (permalink / raw)
  To: ZSH workers mailing list

I have a feeling, that with new completion the complete line is refreshed
every time. I noted that, as my display flickers sometimes quite ugly. It's
getting worse, when logical line extends over several terminal lines ...
Anybody else seen it?

cheers

/andrej


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

end of thread, other threads:[~1999-03-30  4:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-29  8:49 Minor refresh problem with completion Sven Wischnowsky
1999-03-30  3:01 ` CLEAREOD (Was: Minor refresh problem with completion) Geoff Wing
  -- strict thread matches above, loose matches on Subject: below --
1999-03-26  9:08 Minor refresh problem with completion Sven Wischnowsky
1999-03-26  8:38 Andrej Borsenkow

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