bug-ncurses
[Top][All Lists]
Advanced

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

Re: Simple pad test not working


From: Thomas Dickey
Subject: Re: Simple pad test not working
Date: Thu, 3 Jun 2010 18:45:54 -0400 (EDT)

On Thu, 3 Jun 2010, jfilion wrote:


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();
   ^^^ this is the same as wgetch(stdscr), which causes a refresh of
       any changes to stdscr.  From initscr, there's a pending erase
       of the screen...

 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.


_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



reply via email to

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