I have the need for help in the basic usage of NANSI.SYS.
I hope you guys can help me or at least point me in the right direction for what I'm needing. I'm a user of win 7 these days, on another more modern PC. I only use FreeDOS 1.2 on occasion on an older PC…
Anyway, I'm trying to create a menu system from batch files in FreeDOS 1.2 and wanting to change the background colors of the entire screen from within a batch file from DOS' black to blue. I at least found the correct "ESC[" sequence to do this(copy & paste to the rescue) . I even got it working, well, sort of. In the batch file, I TYPE a text file(which is of the menu's choices) just after the ECHO ESC NANSI sequence which works OK, sort of. Instead of the entire screen being blue(what I'm desiring) though, only part of the screen is blue while to the right of the displayed file(where the menu text file ends) remains black. Of course, below the displayed file remains black as well.
I've studied the NANSI.SYS' documentation and I only got more confused(too technical for me). I've even searched the web (Googled) and can't find anything that would help. Some commented coding examples I think would help me a lot.
In the same BAT file I use the choice command to get user input. Then afterwards, I plan on having a series of "if errorlevel…" commands to test for the user's input. I'm not sure what the proper sequence/values would be for the errorlevels.
I hope someone can help. Thanx in advance!
I would've known how to do this in the "old
" days. I guess I've gotten lazy these days and forgotten all the little tricks of yesteryear! :