C++/c++

Advertisement


Question
i'm programming on borland c++ for dos,and i'd wanted to c how it's to program a simple menue with several options on the text mode screen that'd be done under windows millenium OS.
no mouse's used and the user can surf among the options using arrow keys.
it looks as simple as the common menue we see on most dos programs. even like the borland c++ for dos installer menue.
there's nothin strange in the project but i dont got any idea how to perform it.
if i use "windows" command code for that i dunno how to pass by several windows in a text screen,and if i use "bar"command well i shall not use graphics in the project.
i'd be so glad if i get any remarks from you.
thank u
marghachou at yahoo dot com

Answer
marghachou, Thank you for your question.

To display menus in DOS, you will need to control the colors of the background and text for the menu bars.

You can do this using standard Escape Sequences, which are the ESC character followed by argument characters.

Documentation is available at http://sunsite.nus.edu.sg/pub/os2/os2faq/os2faq.2.0062.html.

David Spector

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


David Spector

Expertise

Highly knowledgeable in the C++ language, Visual C++ (MSVC), Windows API, documentation and other quality-assurance techniques, and debugging. Knowledgeable in MFC, COM, GUI design, and object-oriented design.

Experience

I have been a software engineer since 1965. I have been published. My specializations have been: biomedical programming, compiler implementation, and many kinds of Windows programming. I don't do Databases or other business-oriented stuff.

Publications
Windows?/DOS Developer's Journal, ACM SIGPLAN Notices, and Computer Science Press.

Education/Credentials
ICCP Systems Programming Certification
Master's degree equivalent in Computer Science

©2016 About.com. All rights reserved.