Vicky wrote:
> On Jun 12, 10:10 am, Water Lin <Water...@ymail.com> wrote:
>> I want to write a text user interface for my program.
>>
>> That means I will print out something for user, and user will choose which step he wants to run.
>>
>> Now I am just using cout and cin to output and input. It is really a dirty job.
>>
>> I need to write a lot of switch statements to judge what I need to do next.
>>
>> One more thing, I don't know how to output color text under Windows command line, is it possible? How?
>>
>> so, any suggestion on my task?
>>
>> --
>> Water Linhttp://blog.waterlin.org
>
> Your problem is not so clear. TUI programming will be quit OS
> dependent. For Unix/Linux there is curse library. You can use it.
Yes, OP could use ncurses under cygwin.
I am not sure if ncurses has a port to plain Win
though. I think that I have heard of such a thing
but cannot currently find it so maybe it
stopped being maintained a long time ago.
If OP is targetting windows only then
it might be a good idea to look at
some old DOS programming guides
Also, see this article on Turbo Vision
and see if you can get the C++ sources somewhere.
They are apparently a little hard to find?
If you find them post a link back here!
http://en.wikipedia.org/wiki/Turbo_Vision