bug-ncurses
[Top][All Lists]
Advanced

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

Simple pad test not working


From: jfilion
Subject: Simple pad test not working
Date: Thu, 3 Jun 2010 15:24:30 -0700 (PDT)

Can anyone tell me why this doesn't work?  I'm new to ncurses so it could be
something really simple.  I'm running Ubuntu Netbook Remix (10.04).  My
compile command is:

g++ padtest.cc -l ncurses -o padtest

Thanks.

#include <curses.h>

int main (int argc, char *argv[])
{
  initscr();
  WINDOW * pad;

  pad = newpad(50, 100);
  waddstr(pad, "test");
  
  prefresh(pad, 0, 0, 0, 0, 10, 10);

  getch();
  endwin();
  return(0);
}

-- 
View this message in context: 
http://old.nabble.com/Simple-pad-test-not-working-tp28773648p28773648.html
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.




reply via email to

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