[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Curses 5.3 pad problem
From: |
Thomas Dickey |
Subject: |
Re: Curses 5.3 pad problem |
Date: |
Mon, 16 Feb 2004 21:07:39 -0500 (EST) |
On Tue, 17 Feb 2004, Nick Johnson wrote:
> Hi,
>
> I've been unable to get pads working correctly in Curses 5.3.
> The following problem runs fine on systems with curses 5.2, correctly
> displaying an '@' in the upper left before quitting, but on every system
> I have tried with curses 5.3, it fails to produce any output whatsoever.
> I can't help feeling I'm missing something - surely pads do still work
> in 5.3?
They do - but the limit checks are a little different. The last two
parameters should be LINES-1, COLS-1 (that seems to be the check that's
failing here).
> ---Begin Code---
> #include <ncurses.h>
>
> int main() {
> WINDOW *w;
> initscr();
> w = newpad(256, 256);
> waddch(w, '@');
> prefresh(w, 0, 0, 0, 0, LINES, COLS);
> endwin();
> }
> ---End Code---
>
> -Nick Johnson
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net