Re: Can foreground and background colors be queried?
- From: "Gerard Schildberger" <Gerard46@xxxxxxx>
- Date: Wed, 3 May 2006 12:07:36 -0500
| 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.
.
- Follow-Ups:
- Re: Can foreground and background colors be queried?
- From: John Small
- Re: Can foreground and background colors be queried?
- References:
- Can foreground and background colors be queried?
- From: John Small
- Re: Can foreground and background colors be queried?
- From: ML
- Re: Can foreground and background colors be queried?
- From: John Small
- Re: Can foreground and background colors be queried?
- From: Gerard Schildberger
- Re: Can foreground and background colors be queried?
- From: John Small
- Can foreground and background colors be queried?
- Prev by Date: Re: Can foreground and background colors be queried?
- Next by Date: Re: Can foreground and background colors be queried?
- Previous by thread: Re: Can foreground and background colors be queried?
- Next by thread: Re: Can foreground and background colors be queried?
- Index(es):
Relevant Pages
|
Loading