Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

C++ interface to curses

 
   Game Forums (Home) -> Roguelike -> Development RSS
Next:  (C++)(Long) Tracking down a null reference  
Author Message
Mike Blackney

External


Since: Aug 11, 2004
Posts: 8



(Msg. 1) Posted: Wed May 10, 2006 8:05 pm
Post subject: C++ interface to curses
Archived from groups: rec>games>roguelike>development (more info?)

Hi guys,

I've recently been working a bit on my roguelike after a long holiday
and I've started streamlining my IO code to be a little more wieldy.
At the moment it's incomplete, but I have built a very handy C++
interface to curses and I can imagine that any coders too hesitant to
start using curses for their applications would get a real benefit from
it.

It's a simple interface that uses the std:: ostream functionality but
pipes output through curses. It also has some classes for moving the
cursor around the screen in a more intuitive manner. Curses
automagically initiates when you #include the header, and you can
easily call code like:

terminal.cursor.x = 2; terminal.cursor.y = 10;
terminal << color( cWhite ) << "Hitpoints: " << color( cBlue ) <<
player->hp;

straight out of the box.

It's not complete yet, and I'll add more functionality as time goes on
so until I'm ready to release my next RL version I'm not going to put
it with the rest of my code on sourceforge. For now, if anyone's
interested in using it (and helping me out with feature requests :p ),
just email me and I'll send you a copy of the .h and .cpp files as they
are and some quick-start hints.

--
- Michael Blackney -

 >> Stay informed about: C++ interface to curses 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[C/C++] Curses refresh problem - Hi all. I'm making a roguelike as an independent project for class, and I'm having a problem with PDcurses. The way I understand it, the virtual screen is never supposed to appear on the physical screen until I refresh somehow(with refresh, doupdate,..

curses trouble no. 21390: resizeterm / init_color - The (N)curses functions resizeterm / init_color do not seem to work. I have tried multiple vterms (xterm, gnome-terminal, rxvt) and the Linux console : all of them ignored the resizeterm command. When running in a vterm the output works IF you resize....

Running java+curses on MacOS - Hello all As far as I know, JCurses works only for Win and Linux; anybody knows how to access a console cursesly on Mac from Java??? Thanks, -- Slash

7DRL: Invader - Well, I've talked myself into attempting a game for the 7DRL challenge. :-) Invader will be a sci-fi RL where the player is the planet's only hope of stopping a dread alien invasion ship. The character's base of operations will be their docked ship. ....

7DRL: TBA! :P - I'm going to throw my hat into the 7drl arena by taking on a project I've wanted to do for ages. I think it will get me past the mental block of actually getting started. My concept is based around the remains of a post apocalyptic world with gang..
   Game Forums (Home) -> Roguelike -> Development All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]