NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/41257: curses: getyx + wmove violates least astonishment past end-of-line

On Sat, May 09, 2009 at 12:25:02AM +0000, Jed Davis wrote:
>  Except that something is wrong here.  If I write a character which
>  extends up to (but not beyond) the rightmost column of the terminal
>  with addch or add_wch, then it sets __ISPASTEOL and leaves the cursor
>  position at the *beginning* of the character.  It's only if I use addstr
>  that the cursor gets into the one-past-the-end state.

Right.  That is why I said previously that trying to paper over the
bug by adjusting the return of getyx() is not a good idea.  I will
generate another patch soon that should remove the off by one error.

Brett Lymn
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited.  If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility.  It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
your computer."

Home | Main Index | Thread Index | Old Index