bug-ncurses
[Top][All Lists]
Advanced

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

Re: How do you draw to the bottom-right corner of the screen?


From: Tim Allen
Subject: Re: How do you draw to the bottom-right corner of the screen?
Date: Fri, 7 Sep 2007 14:06:58 +1000

On 6 Sep 2007, at 22:00, Thomas Dickey wrote:
On Thu, 6 Sep 2007, Tim Allen wrote:
According to the ncurses announcement page, "Unlike SVr3 curses, ncurses can write to the rightmost-bottommost corner of the screen if your terminal has an insert-character capability." However, if you actually try this, mvaddch() returns ERR. Is there some special function call you have to make in order to get ncurses to accept bottom-right screen writes? The mvaddch manpage and numerous Google searches don't seem to mention such a thing.

The move returns OK, but the waddch returns ERR after adding the character because it attempts to scroll the screen, but cannot.

The manpage for addch does not describe in detail the conditions which would produce an error, though this behavior is about ten years old.
(There are several error checks...)

Ah, I see. The phrasing of the bullet-point on the announcement page ("ncurses can write...") led me to believe that I could say 'put a character in this location' and ncurses would figure out the combination of insch()/addch() required to produce the intended display. If the actual situation is that "ncurses gives you the tools you need to write...", then I guess I misunderstood. Thanks for clearing that up for me!




reply via email to

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