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



The following reply was made to PR lib/41257; it has been noted by GNATS.

From: Jed Davis <jld%panix.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: lib/41257: curses: getyx + wmove violates least astonishment
        past end-of-line
Date: Fri, 8 May 2009 20:24:32 -0400

 On Fri, May 08, 2009 at 01:15:03AM +0000, Jed Davis wrote:
 >  
 >  But assuming that the one-past-the-end internal state is a reasonable
 >  state to be in -- which the presence of the __ISPASTEOL machinery seems
 >  to suggest -- then the alternative to hiding that state from the user is
 >  to allow it to be retrieved and restored, thusly:
 
 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.
 
 --Jed
 


Home | Main Index | Thread Index | Old Index