Article View: comp.os.msdos.programmer
Article #5031Re: Small utility to disable VGA border
From: Milan M Shah
Date: Tue, 05 Mar 1991 22:02
Date: Tue, 05 Mar 1991 22:02
25 lines
1811 bytes
1811 bytes
>Try this 2-line C program:
>#include <stdio.h>
>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
.
Technical Details
Message-ID:
<1991Mar5.220218.4461@athena.mit.edu>Path:
arc1-ca.pugleaf.net!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!mmshahReferences:
<1991Mar4.013815.6378@athena.mit.edu> <68410002@hpcupt1.cup.hp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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