zsh-workers
 help / color / mirror / code / Atom feed
* Re: CLEAREOD (Was: Minor refresh problem with completion)
@ 1999-03-31 11:00 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-03-31 11:00 UTC (permalink / raw)
  To: zsh-workers


mason@primenet.com.au wrote:

> Sven Wischnowsky <wischnow@informatik.hu-berlin.de> typed:
> :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.
> 
> Yes, TCCLEAREOD must be done from the first column.  Lots of terminals
> will happily do it from anywhere, but....

The patch in 5971 added a variable `listshown' that should be always
correctly reflect if a list is shown below the prompt. The patch below 
makes the cursor be moved below the prompt (in the first column) and
give out the CLEAREOD there. Since this is only done if there is a
list, this should work without moving up the screen just because the
prompt happens to be in the last line.

Should have thought about that immediatly...

Bye
 Sven

diff -u os/Zle/zle_refresh.c Src/Zle/zle_refresh.c
--- os/Zle/zle_refresh.c	Tue Mar 30 16:00:51 1999
+++ Src/Zle/zle_refresh.c	Wed Mar 31 12:43:31 1999
@@ -262,7 +262,7 @@
 	if (tccan(TCCLEAREOD)) {
 	    int ovln = vln, ovcs = vcs;
 
-	    moveto(nlnct - 1, columns - 1);
+	    moveto(nlnct, 0);
 	    tcout(TCCLEAREOD);
 	    moveto(ovln, ovcs);
 	} else {

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


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

* CLEAREOD (Was: Minor refresh problem with completion)
  1999-03-29  8:49 Minor refresh problem with completion Sven Wischnowsky
@ 1999-03-30  3:01 ` Geoff Wing
  0 siblings, 0 replies; 2+ messages in thread
From: Geoff Wing @ 1999-03-30  3:01 UTC (permalink / raw)
  To: zsh-workers

Sven Wischnowsky <wischnow@informatik.hu-berlin.de> typed:
: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.

Yes, TCCLEAREOD must be done from the first column.  Lots of terminals
will happily do it from anywhere, but....

I'll look into it (though that clearlist section is probably the only
main part of zle_refresh.c I _didn't_ write).  First I better build
pws-14, heh? :-)

BTW, anyone notice that individual message threads weren't happening
properly in recent articles in the mailing list archive (and not tell
me).  I'll fix that soon.

Regards,
-- 
Geoff Wing   <gcw@pobox.com>            Mobile : (Australia) 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/


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

end of thread, other threads:[~1999-03-31 11:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-31 11:00 CLEAREOD (Was: Minor refresh problem with completion) Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
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

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