#include #include using std::string; class HelloApp : public NCursesApplication { public: HelloApp() : NCursesApplication(FALSE) {} int run(); }; int HelloApp::run() { string hello = "Hello, World!"; Root_Window->addstr(Root_Window->lines() / 2, (Root_Window->cols() - hello.size()) / 2, hello.c_str()); // refresh the screen. Root_Window->refresh(); // Wait for user to press a key. Root_Window->getch(); return 0; // the return code. } // required so that ncurses will call the application. static HelloApp helloApp;