Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!sol.ctr.columbia.edu!emory!gatech!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!mmshah From: mmshah@athena.mit.edu (Milan M Shah) Newsgroups: comp.os.msdos.programmer Subject: Re: Small utility to disable VGA border Message-ID: <1991Mar5.220218.4461@athena.mit.edu> Date: 5 Mar 91 22:02:18 GMT References: <1991Mar4.013815.6378@athena.mit.edu> <68410002@hpcupt1.cup.hp.com> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 25 >Try this 2-line C program: >#include >main() { puts ("\x1b[50m") ; } Yes, but you misunderstand the intend of my asm program. I am faced with this situation: My normal DOS colors are black letters on white background (ok, you can quit laughing any day now :-) This is done by setting the prompt to an ansi sequence that changes colors, and works quite well. Now, when I execute certain programs for example foxbase, windows etc., all of a sudden my border color gets set to white. Hence the problem is not how to execute a program that turns off the border or sets it to some color, but how to prevent the border color from being changed even if someone tries to set it to a different color. My program will work on a Paradise VGA 1024i, and after you run it once, even if someone tries to set up the border color, the border will not be affected. One might wonder where I ever got software that manipulates the border color. Well, none of the programs I use manipulate the border color, but what happens is that upon entry/exit, DOS sets the border color to whatever was the background color before. If your background is black, there's no problem, but if its not, its quite sinister. Milan .