Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Need Help 4 NANSI.SYS & bat file choice/errorlevel How-to

  • Please log in to reply
No replies to this topic

#1 PieLam


  • Members
  • 242 posts
  • Gender:Male
  • Location:Memphis, TN
  • Local time:07:23 AM

Posted 11 August 2018 - 05:25 PM

Hi all!
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!  : :bubbles:

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users