[comp.lang.c++] Help with CursesWindows.h in C++

doug@das (Douglas S. Miller) (10/05/89)

I am new to C++, so there is probably some obvious reason why what I
am doing is wrong but I don't know what it is.  I am trying to use
C++ for a simple application that needs to move the cursor around the
way vi and many games do.  I don't know how to initialize the window 
correctly (I think).  The little bit of test code below demonstrates what 
I thought was a correct way to initialize the window and perform a
simple 'clear screen' operation.

#include <CursesWindow.h>
main()
{
	CursesWindow w(stdscr);

	w.clear();
	w.refresh();
}

Does anyone out there have a bit of C++ code that uses CursesWindows.h
that they can send me, so that I can learn from their example?

Thanks,

Doug Miller      doug@das.llnl.gov or ...!cs.utexas.edu!lll-crg!das!doug
   "If two men are fighting and the wife of one intervenes to help her
husband by grabbing the testicles of the other man, her hand shall be cut
off without pity."  Deuteronomy 25:11