Teen Programmers Unite  
 

 

Return to forum top

DOS interface using C

Posted by elliott [send private reply] at July 30, 2002, 01:14:42 PM

I want to write a DOS based program in C. What I need help with is how do I do the actual interface? For example I want the program to to use the 'F#' keys(ie. F3) to select the task you would like to perform...then have a menu come up with the options available for that key...I would like to be able to move through the menu options with the arrow keys and then press enter to select that option...I need at least a starting point on how to create the DOS interface..
CES

Posted by unknown_lamer [send private reply] at July 30, 2002, 01:16:20 PM

Install curses for DOS. Curses lets you control the terminal and do nifty stuff like you want to do.

Posted by Psion [send private reply] at July 30, 2002, 03:38:57 PM

Of course, there is no reason for anyone to be writing DOS programs anymore, so I'd question whether you even want to be doing this.

Posted by elliott [send private reply] at July 30, 2002, 03:54:14 PM

Its not by choice however however, this is what they want...where can I get curses for DOS?

Posted by unknown_lamer [send private reply] at July 30, 2002, 04:05:49 PM

See djgpp.org (last time I checked it was there).

Posted by elliott [send private reply] at July 30, 2002, 04:23:51 PM

Thanks

Posted by CodeRed [send private reply] at July 30, 2002, 04:28:06 PM

[wierd ET voice] elliiioooott [/wierd ET voice]

Posted by elliott [send private reply] at July 30, 2002, 04:47:00 PM

hah

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.