Jump to content
  • Advertisement
Sign in to follow this  
Zesterer

NCurses-like functionality - Does anyone know a library?

This topic is 1411 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

Sorry if this is a bit of a strange request. I'm guessing this forum likely gets requests for 3D libraries. But I'm wanting to write a game with a graphical style similar to that of Dwarf Fortress, Nethack, etc. I need a library / way of rendering a Window with 2D monospace text in it, preferably with colors as well. It must be cross-platform (Linux, Windows, OSX) and should hopefully be able to interface with the Vala programming language, although this is not necessary.

 

For reference, I'm coming from Python. Python had a library know as pygame, which had a sub-library called pygcurses (a cross-platform ncurses clone using SDL). Here's a link to it for reference: http://inventwithpython.com/pygcurse/. If something like this existed for a compiler language like C++ / Vala, that would be brilliant. Unfortunately, various searches have brought up nothing.

 

I have been told that OpenGL + Pango (http://www.pango.org/) may be able to do it, but I'm not sure how I would go about this.

 

Thanks,

 

Zesterer.

Edited by Zesterer

Share this post


Link to post
Share on other sites
Advertisement

PDCurses? (although I don't know how well it works, I just looked it up now)

 

That should be enough for the platforms you mentioned I think, but note that both ncurses and PDCurses are based off the curses API so in theory if you stick to it you should be able to freely switch between both APIs depending on the platform.

 

There also seems to be a port of ncurses to Windows, but not sure how up to date it is (or if it's still maintained at all).

Share this post


Link to post
Share on other sites
The last time I checked Dwarf Fortress was using PDCurses. There is also libtcod but I never really used it and it appears to not be actively developed anymore.

Sniffing around on Rogue Basin might produce more libraries or similar libraries for different languages.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!