ajs@EDDIE.MIT.EDU@procase.UUCP (02/27/87)
Problem:
On an SR9.2.3 Apollo, xterm will drop characters during character
insertion.
To reproduce:
Go into GNUemacs, or any editor which inserts characters with
`\E[@X' (where X is the char to insert). Start inserting text.
At some point the character under the cursor will disappear.
Doing a xrefresh will not cause the character to reappear.
The Bug:
bzero(3) is the culprit. Xterm uses this routine to clear out
the screen buffer's new character space. The problem is that
for certain alignments of the character pointer and small values
of the count, count + 1 bytes will be zeroed.
The Fix:
I don't know if this is fixed in SR9.5 (I am trying to find out
now.) What I've done in the meantime is to insert the following
routine into xterm:
bzero( ptr, cnt )
register char *ptr;
register int cnt;
{
while( cnt-- > 0 ) *(ptr++) = '\0';
return 0;
}
Andrew Jay Schneider
UUCP: ...{hplabs, tektronix, ihnp4!amdcad}!cae780!procase!ajs
ARPA: decwrl!cae780!procase!ajs@berkeley or
leadsv!cae780!procase!ajs@lll-lcc (both untested)