Curses bug

utzoo!decvax!duke!unc!jem utzoo!decvax!duke!unc!jem
Tue Nov 9 18:43:26 AEST 1982


I've found and fixed a bug in curses that occurred
when writing to a non-full-screen window, and is
terminal dependent.  It happens when curses tries
to get to a position in a window that starts to
the right of the current cursor position by printing
characters it expects to already be there.  It was
trying to print characters to the left of where
the window began, instead of filling in from curscr.
I'm not sure the fix is complete or even correct,
but it solved my problem.  My problem occurred
while trying to get 'et' (troll's editor) to work
on hp terminals.  Here's the diff fro cr_put.c:

258c258
< 				c = _win->_y[outline-_win->_begy][outcol-_win->_begx];
---
> 				c = curscr->_y[outline][outcol];



More information about the Comp.bugs.4bsd.ucb-fixes mailing list