[Top][All Lists]

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

Re: Setting last character on screen (without scrolling enabled)

From: Thomas Dickey
Subject: Re: Setting last character on screen (without scrolling enabled)
Date: Wed, 06 Jun 2012 20:35:45 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Jun 06, 2012 at 08:24:16PM -0400, Thomas Dickey wrote:
> On Wed, Jun 06, 2012 at 11:02:55AM +0000, Michael Bohn wrote:
> > Assume you have a NCurses Window (could be a subwindow) with dimensions ROWS
> > and COLS.  How do I set the character at ROWS-1 and COLS-1.  If I use 
> > waddstr
> > at this position with one character it doesn't work (throws a user
> > exception).  I assume this is because the cursor is moved to a position
> > outside the window?
> either waddstr or waddch will write the character (and it will be displayed),
> but return an error because the wrap to the next line fails.
> Solaris curses works like this; some programs rely on the behavior.

checking portability:
        Solaris 10 returns ERR
        IRIX64     returns ERR
        HPUX 11.23 returns OK
        Tru64      returns ERR
        AIX    6.1 returns OK

Though HPUX implemented SVr4, it was the last (and some of its differences from 
other systems demonstrate that the implementers relied more on documentation 
on cross-checking).  Tru64 is technically the best of the above listed; Solaris
has a lot of code rot.  So I've found no reason to change the quirk.

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]