Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Refresh patch (Was: Refresh problem)
Andrej Borsenkow <borsenkow.msk@xxxxxx> 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@xxxxxxxxxxxxxxx] 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author