in reply to Curses problem
$w=newwin(1,1,40,40);You've got your arguments to newwin incorrect.
$ man newwin ... WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x);
use Curses; initscr; my $w = newwin(40,40,1,1); $w->addstr(20,20,"Hello"); $w->refresh; endwin; <>;
Works for me.
Update: Fixed borked link
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Curses problem
by Sec (Monk) on Dec 27, 2008 at 14:28 UTC |