From: mason@primenet.com.au (Geoff Wing)
To: zsh-workers@math.gatech.edu
Subject: Refresh patch (Was: Refresh problem)
Date: 3 Jul 1997 02:11:36 GMT [thread overview]
Message-ID: <slrn5rm2io.m01.mason@ns1.primenet.com.au> (raw)
In-Reply-To: <Pine.SV4.3.95.970702211638.11294B-100000@itsrm1>
Andrej Borsenkow <borsenkow.msk@sni.de> typed:
:On Fri, 13 Jun 1997, Andrej Borsenkow wrote:
:bor@itsrm1:~%> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
:aaaaaaaaaaaaaaaaaaaaaaa '
:quote> bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
:bbbbbbbbbbbbbbbbbbbbbbbbbbbb '
:
:write(10, 0x082FA92C, 212) = 212
: a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
: a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
: a a a a a a a a a a a a a a a a a a a a a a a a '1B [ 0 K1B [
: 0 m\r\n b b b b b b b b b b b b b b b b b b b b b b b b b b b b
: b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b
: b b b b b b b b b b b b b b b b b b b b\n b b b b b b b b b b b
: b b b b b b b b b b '1B [ 0 K1B [ 0 m
Very helpful.
Try this. It's a patch against 3.0.4, but it should work with 3.1.2:
*** zle_refresh.c.org Mon Jun 23 15:12:47 1997
--- zle_refresh.c Thu Jul 3 12:02:34 1997
***************
*** 575,583 ****
if (nllen)
strncpy(p1, nl, nllen);
memset(p1 + nllen, ' ', winw - nllen);
! p1[winw] = p1[winw + 1] = '\0';
if (ln && nbuf[ln])
! strncpy(nl, p1, winw + 2); /* next time obuf will be up-to-date */
else
nl = p1; /* don't keep the padding for prompt line */
nllen = winw;
--- 575,584 ----
if (nllen)
strncpy(p1, nl, nllen);
memset(p1 + nllen, ' ', winw - nllen);
! p1[winw] = '\0';
! p1[winw + 1] = (nllen < winw) ? '\0' : nl[winw + 1];
if (ln && nbuf[ln])
! memcpy(nl, p1, winw + 2); /* next time obuf will be up-to-date */
else
nl = p1; /* don't keep the padding for prompt line */
nllen = winw;
--
Geoff Wing [mason@primenet.com.au] Technical Manager
Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy
Facsimile: +61-3-9819 3788 Web : <URL:http://www.primenet.com.au/>
Mobile : 0412 162 441
next prev parent reply other threads:[~1997-07-03 2:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-13 11:54 BUG? in histreduceblanks in 3.1.2-beta Andrej Borsenkow
1997-06-13 15:32 ` Andrej Borsenkow
1997-07-02 19:09 ` Refresh problem (Was: BUG? in histreduceblanks in 3.1.2-beta) Andrej Borsenkow
1997-07-03 2:11 ` Geoff Wing [this message]
1997-06-13 16:04 ` BUG? in histreduceblanks in 3.1.2-beta Zefram
1997-06-14 6:48 ` 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=slrn5rm2io.m01.mason@ns1.primenet.com.au \
--to=mason@primenet.com.au \
--cc=zsh-workers@math.gatech.edu \
/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).