Hi,
   Carl certainly can speed things along in the cli. Interesting evening.

Somebody asked about how the manual pages appeared in colour. Carl said
this was a Redhat feature. (Most new distro's use XFree86 4.2.0)
Top was also in colour but information on this is sparse and I havn't
found out how top can do this.

The terminal window was an Xterm which has its system config file in
/usr/X11R6/lib/X11/app-defaults (in Redhat) although other distro's such
as Slackware use /etc/X11/app-defaults.

The Xterm config file is /etc/X11/app-defaults/XTerm. There is also another
file called /etc/X11/app-defaults/XTerm-color but I found that it didn't
work, probably because of the #include XTerm header. It is virtually a copy
of the colour section of Xterm anyway so I just stuck to editing the Xterm
file.

All lines starting with a bang are comments. The colour section down
the bottom is called "Enable Color by default" and contains several
attribute entries that need to uncommented for bold "BDMode" and underlined
"ULMode" modes to become switched on.
(During the presentation it was the bold and underlined man text that was
appearing in colour. Redhat has them on by default.)

*VT100*colorBDMode: on                 (these switch BD and UL on)
*VT100*colorULMode: on


*VT100*colorUL: cyan                   (these define UL, BD colours)
*VT100*colorBD: yellow


The easiest method is to make a user ~/.Xdefaults file in your home
directory and leave the /etc/X11/app-defaults/XTerm as is.
(unless you prefer editing the sys file)

Colours in .Xdefaults are (literally) pretty neat. You can fine tune
the colour tone for you liking by adding 1,2,3 or 4.
If you run console progs like mc in xterm you may have problems
with .Xdefaults having priority over mc custom colours. The
*VT100*color0 - *VT100*color15 entries to have to be changed to
fix it.

*VT100*color0 is the background colour, but I added another two entries
called *VT100*Background: and *VT100*Background: because they work better
with xterm.

The .Xdefaults file below is slightly changed from the sys XTerm
with underline and bold colours being cyan and yellow.
If you already have a ~/.Xdefaults file you will probably just need
append your colour preferences.

color3 was changed from "yellow" to "brown4" because I liked brown4 in mc.

*VT100*Background: black
*VT100*Foreground: green

were added because they cause xterm to run in black and green right
from the start, not just for applications. (this is identical to using
the command 'xterm -bg black -fg green')

If anyone can find out how Redhat gets "top" to appear in colour I'd
be glad to know.


cheers,
Keith.


~/.Xdefaults
---------- cut -------------------

*VT100*Background: black
*VT100*Foreground: green


! Enable Colour by default.

*VT100*colorMode: on
*VT100*boldColors: on
*VT100*dynamicColors: on

! Uncomment this to use color for underline attribute
*VT100*colorULMode: on
!*VT100*underLine: off

! Uncomment this to use color for the bold attribute
*VT100*colorBDMode: on

! Uncomment this to use the bold/underline colors in preference to other colors
*VT100*colorAttrMode: on


! colours defined here
*VT100*color0: black
*VT100*color1: red3
*VT100*color2: green3
*VT100*color3: brown4
*VT100*color4: blue3
*VT100*color5: magenta3
*VT100*color6: cyan3
*VT100*color7: gray90
*VT100*color8: gray30
*VT100*color9: red
*VT100*color10: green
*VT100*color11: yellow
*VT100*color12: blue
*VT100*color13: magenta
*VT100*color14: cyan
*VT100*color15: white
*VT100*colorUL: cyan
*VT100*colorBD: yellow

---------- cut ---------------




















Reply via email to