Re: Can foreground and background colors be queried?



| John Small wrote:
|> Gerard46 wrote:
|>| John Small wrote:
|>| I want to know what the foreground and background colors are of the
|>| command line window. The only way I know how to set these are with
|>| the use of ANSI sequences, for example:
|>| call charout , d2c(27) || '[1;33m'
|>| sets the foreground color to bright yellow.
|>| I'm looking for ways to query what colors are "in effect" when my
|>| program starts running.

|> I eventually gave up on this (under Windows) and what I ended up
|> doing is setting an environmental (DOS) variable to the default
|> colors (as defined by the ASCI escape sequence number).

| I understand the setting of the environment variable. But I'm not
| sure I understand the "default colors (as defined by the ASCI escape
| sequence number)". Is there an ASCII escape sequnce number which
| returns the default/current colors?

No, nothing that RETURNS the default color or the current color.


| How does your program determine what value to set the environment
| variable to?

My program does not set the environment variable. I determine what
default I want my colors to be, and I set the "default". You can
set this environmental variable in the Registry, or via a program
or some such control variable wheneven the "DOS" window gets
initialized/setup. _____________________________________Gerard S.




.



Relevant Pages

  • Re: how to scramble data in a table
    ... gaps in the sequence. ... Person record and then select 3 random PersonID using the RAND ... things like "John Paul Depfarb" or worse. ...
    (microsoft.public.sqlserver.programming)
  • Re: Input Mask: SB-01
    ... A few additions to what John has written. ... The field in question is the Primary key in the main form and the subform ... has all of the reocurring checks that are related to this batch number. ... and an integer sequence field. ...
    (microsoft.public.access.formscoding)
  • RE: circular reference where sumif and vlookup overlap
    ... There are several websites that allow free hosting of files. ... "John C" wrote: ... The third page works out a movement sequence based on equipment available. ... the SUMIF from the VLOOKUP I get a circular reference error. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Can foreground and background colors be queried?
    ... | command line window. ... | sets the foreground color to bright yellow. ... colors (as defined by the ASCI escape sequence number). ... I understand the setting of the environment variable. ...
    (comp.lang.rexx)
  • Re: Getting Column Titles
    ... Jeff ... "John" wrote: ... >> I have tried the code you supplied, but have one question, why does it fail ... > sequence so those will have to be addressed. ...
    (microsoft.public.project.vba)

Loading