From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Minor refresh problem with completion
Date: Mon, 29 Mar 1999 10:49:07 +0200 (MET DST) [thread overview]
Message-ID: <199903290849.KAA01008@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Sven Wischnowsky's message of Fri, 26 Mar 1999 10:08:56 +0100 (MET)
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
next reply other threads:[~1999-03-29 8:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-29 8:49 Sven Wischnowsky [this message]
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
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=199903290849.KAA01008@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/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).