Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pacbell!att!alberta!damask!lowey From: lowey@damask.UUCP (Kevin Lowey) Newsgroups: comp.sys.ibm.pc Subject: Re: colors under ansi.sys and codeview Summary: Try using MODE CO80 Message-ID: <1107@damask.UUCP> Date: 10 Jun 88 20:58:34 GMT References: <1769@loral.UUCP> Organization: University of Saskatchewan Lines: 38 In article <1769@loral.UUCP>, jlh@loral.UUCP (The Mad Merkin Hunter) writes: > I've got 2 unrelated questions dealing with colors. First off, codeview > seems to have decided on it's own that I want black and white. It decided I've noticed a similar thing in Turbo Pascal. Many programs look at the CRT mode (BW or Colour) when they start up, then use grey shades in black and white modes, or colours in colour modes. Try the command MODE CO80 before running codeview. This might fix it. (some MS-DOS versions use CONFIGUR instead of MODE) > Second, I'm using ansi.sys calls to change the background of my screen > display. When said background is anything but black I have a black border > around my (beautiful) display. How can I get rid of this border, portability > be damned? Peter Norton's norton utilities has a command called SCRNCOLR (or something like that) which lets you set the foreground, background, and border colours. The border is set with a BIOS call of some kind, but unfortunately I left my "Peter Norton's Inside the IBM PC computer" book at home so I can't look up the proper BIOS call for you. > Gee, while I'm at it does anyone have C source for a routine > to let the user change screen colors dynamically? No source code, but the above utility should work. Also the book mentioned above explains how the screen colours work. It's not too hard to write your own routines. (I've done it in Turbo Pascal, but I don't have the source handy) Hope this helps, ______________________________________________________________________________ | Kevin Lowey |The above is the personal opinion of Kevin | | University of Saskatchewan |Lowey. It does not reflect the position of| | Computing Services |the University of Saskatchewan in any way. | | SaskTel: (306) 966-4826 | | | Bitnet:LOWEY@SASK. (preferred) |I am in no way affiliated with any of the | | UUCP: ihnp4!damask!lowey.uucp |above mentioned companies other than U of S| |________________________________|___________________________________________|