bug-ncurses
[Top][All Lists]
Advanced

[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:24:16 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

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.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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