[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Mixed up colors
- Subject: Re: Mixed up colors
- From: Harry Binswanger hb@xxxxxxxx
- Date: Sat, 16 Jul 2016 10:24:50 -0400
Carl,
Thanks, this does it: "For any numbered MoDe M, the
Fg color is the remainder after dividing M by 16; and the Bg color is
the quotient."
The crucial point is that what the fg and the bg number will be is
determined by the rgb setting in config.txt--*with the position of that rgb
setting in the sequence determining which rgb setting the remainder and the
quotient will use*.
So, if the first rgb triple is (0,0,0) and a MoDe number has a remainder of
zero, then its foreground will be black, because the first triple
represents VGA color 0.
I struggled. Robert would be pround
Regards,
Harry
23:57:21 -0400
Harry,
> On the screen colors, it looks like mode 0 sets the background for
> both the CMline and MD NM. Any way to pry those apart?
MoDe 0 corresponds to the DOS background color, not necessarily to the
color of any screen element in XyWrite. But the short answer to your
question is Yes. In SETTINGS.DFL, play with the first two values of
default L1, and with the first three values of default L2. (If you
display the ruler, you may also need to adjust the values of default
L3.)
For reference, here's a list of the color controls available in
defaults L0 - L4 (source: Signature: Making the Transition) -- L1, L2
and, possibly, L3 being the ones that are relevant to your question:
L0 (Menu Bar Color Control)
df L0=i,h,a,b
-------------
i items in menu bar
h highlighted menu item
a accelerator character
b background color of menu bar
L1 (Command Line Color Control)
df L1=c,t,w,f
-------------
c current path
t text on CMline
w wildcards
f functions
L2 (Status Line Color Control)
df L2=l,m,b,o,s
---------------
l field labels and indicators (path, window number, date, etc.)
m prompt messages
b background color of fields (path, window number, date, etc.)
o color for prompts requiring a user response
s color for warning prompts
L3 (Ruler Line Color Control)
df L3=d,c,m,t
-------------
d color for dots and numbers on ruler line
c color for cursor on ruler line
m tab indicators on ruler line
t color of dot indicating active column in a table
L4 (Pulldown Menus, Dialog Box, and Help Screen Color Control)
df L4=i,h,a,d,b
---------------
i color of available items in pulldown menus, dialog boxes, Help
screens
h color for highlighted pulldown menu item
a color for accelerator character in each menu item
d color for dimmer (unavailable) items in pulldown menu
b color for highlighted item in list box
Also, for a discussion of the relationship between DOS colors (0-F
hex), XyWrite MoDes (0-255) and vDos config.txt color settings, see my
post from 19 November 2015:
http://www.freelists.org/post/xywrite/vDosXy-color-modes,22
--
Carl Distefano
cld@xxxxxxxx