Jump to content
  • Advertisement
Sign in to follow this  
MeshGearFox

Text-mode User Interfaces with C++ on Windows - Curses, OS-specific APIs, etc.?

This topic is 3791 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

My goal is to create something like this: http://en.wikipedia.org/wiki/Text_user_interface What's the best way to go about doing this, though, if I'm programming it in C++ or C, for a Win32 environment? This is kind of archaic so I don't imagine it gets talked about a lot. Anyway, curses (ncurses? PDCurses?) seems to do what I want, but I've heard some negatives about it too. Portability would be nice but it's not something I care that much about for the time being. Anyway, PDCurses seems to be fairly well documented, so if that's the best solution, I should be alright. Does anyone have any other recommendations, though?

Share this post


Link to post
Share on other sites
Advertisement
There's really only two options, which you've already found, Curses, and OS Specific API.

The documentation for the Windows Console is here:
http://msdn2.microsoft.com/en-us/library/ms682087.aspx

Everyone recommends curses, because it's portable, so transfering your code to any platform is not very difficult. At the same time, I feel the Windows console API is easier to understand. The choice is really up to you, because both libraries look about the same from the end user's standpoint.

EDIT: If you're looking more for a pure TUI, there are some libraries available for that too, such as CDK

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!