[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: Michael Bohn
Subject: RE: Setting last character on screen (without scrolling enabled)
Date: Thu, 7 Jun 2012 10:04:53 +0000

Is there a workaround for this? Is it possible to set a character at a position 
without moving
the cursor or something like waddstr that moves the cursor to the left?

From: Thomas Dickey address@hidden
Sent: 07 June 2012 02:24
To: Michael Bohn
Cc: address@hidden
Subject: Re: Setting last character on screen (without scrolling enabled)

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>

reply via email to

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