[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
braincurses - a new C++ wapper for curses
From: |
stefan |
Subject: |
braincurses - a new C++ wapper for curses |
Date: |
Sat, 29 Mar 2003 13:21:04 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1 |
Hello
I am currently working on a C++ wrapper for Ncurses, mainly for use in
my own programs, but other people might like it too.I have not yet
released it. My implementation differs a lot from the original C++
Ncurses interface by Jürgen Pfeiffer, using custom (I like to call them
"clear") function names (while still providing the original ones), a
slightly different object hierarchy, namespaces and even more inlines ;)
There is one issue I would like to have your opinion on:
I added a modified version of wgetnstr in my code which takes
a standard C++ string object reference as an argument and uses it for
buffering user input, instead of a char buffer of limited length.
For this code to compile, I need to include curses.priv.h.
Since it is not part of the standard API, I have to provide it myself.
As it turned out curses.priv.h also includes curses.h, so
I ended up not including curses.h directly but let curses.priv.h do this
job for me.
I modified curses.priv.h so it does not include ncurses_cfg.h.
It still does include nc_alloc.h and nc_panel.h, which I provide
in as well.
The code compiles well here in my very own home, using Ncurses version
5.2 supplied by Debian Woody 3.0. But I cannot be sure whether including
the "private" curses headers (ie not part of the actual api) I am using
in my distribution will compile with future or past versions of Ncurses.
Are they subject to change?
Regards
stefan
- braincurses - a new C++ wapper for curses,
stefan <=