in reply to Curses problem

I'm never played with Curses before, but it's been on my todo list for years...

$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


Unless I state otherwise, all my code runs with strict and warnings

Replies are listed 'Best First'.
Re^2: Curses problem
by Sec (Monk) on Dec 27, 2008 at 14:28 UTC
    Duh! Thanks! Works now.