From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: CLEAREOD (Was: Minor refresh problem with completion)
Date: Wed, 31 Mar 1999 13:00:17 +0200 (MET DST) [thread overview]
Message-ID: <199903311100.NAA08323@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: mason@primenet.com.au's message of 30 Mar 1999 03:01:25 GMT
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
next reply other threads:[~1999-03-31 11:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-31 11:00 Sven Wischnowsky [this message]
-- 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
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=199903311100.NAA08323@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).