views:

1649

answers:

2

Can anyone recommend a C++ wrapper for ncurses?

+1  A: 

Try this source forge project. It's an NCurses development kit for C++

http://ndk-xx.sourceforge.net/

JaredPar
And you have used this?
BubbaT
Looks kinda abandoned to me.
Ryan Graham
Yep Ryan, that's why I asked.
BubbaT
+1  A: 

I've written my own a few years back... I did so because an ncurses-compatible library was installed in Linux, but not under Win32. (I could use PDCurses, but at the time I couldn't prevent PDC_breakout() from stopping a refresh() operation without popping open the source code.)

This wrapper was written within 7 days, as part of a rapid development. As such, it has a few (removable) dependencies on non input/output datatypes specific to a program, but they can be safely removed.

Basically, I have two major functions - initialization, which calls all the curses initialization functions and colour definitions that I don't plan on tweaking later, and the refresh function, which transfers the "internal" display buffer to the output.

Overall, you may feel more comfortable creating in index card or cheat sheet containing "initscr(); cbreak(); noecho(); move(y,x); addch(ch); endwin();", but if you want to use my wrapper, you can message me or download it from here as long as you abide by the Creative Commons license.

Raymond Martineau
Thank you but no. This is a personal project, and I started to write a streams based version. Should only take me a few more hours to get a basic skeleton done.
BubbaT