* Colors and Redhat (!crystal ball)
@ 2003-05-05 18:19 William D. Colburn (aka Schlake)
2003-05-06 10:35 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: William D. Colburn (aka Schlake) @ 2003-05-05 18:19 UTC (permalink / raw)
Ok, I've learned a lot about what information is important to specify,
so I'm going to splat it all out here and see if anyone can point me in
the right direction.
The problem is that weird colors appear in my emacs when I run the
command "emacs -nw -q --no-site-file" under Redhat linux.
I am used to running emacs 21.2. At work, I am forced to use Redhat.
Redhat has emacs 21.2 installed on it. I find the colors which appear
under Redhat to be unusable.
To see the first indication something is wrong, try the command:
emacs -nw -q --no-site-file
I am used to, and expecting, a white screen with black text, except for
the mode bar at the bottom which will be a black background with white
text. However:
21.2 on redhat will have the word "*scratch*" in a blue bar.
21.2 on slackware will have the word "*scratch*" in a black bar.
21.2 on Solaris will have the word "*scratch*" in a black bar.
21.2 on Osf/1 will have the word "*scratch*" in a black bar.
The blue bar isn't unreadable, but it does annoy me. Emacs 21.2 appears
to set that via mode-line-buffer-identification. The default value
according to the emacs help is ("%12b"). The default value in practice
is:
(#("%12b" 0 4 (face (:weight bold) help-echo "mouse-1: previous
buffer, mouse-3: next buffer" local-map (keymap (header-line keymap
(mouse-3 . mode-line-bury-buffer) (down-mouse-3 . ignore) (mouse-1
. mode-line-unbury-buffer) (down-mouse-1 . ignore)) (mode-line keymap
(mouse-3 . mode-line-bury-buffer) (mouse-1 . mode-line-unbury-buffer)
(down-mouse-1 . ignore))))))
This value is the same on Redhat and Slackware. I was able to get rid
of the blue bar with this:
(custom-set-variables
'(mode-line-buffer-identification '("%12b"))
)
Putting that lisp into fixblue.el, and running the command
"emacs -nw -q --no-site-file -l ./fixblue.el" I get an all black
screen. Yahoo!
>From there, I type 'M-x apropos' and then 'apropos-regexp'. Now I get
the split screen and a list of things to see further help on.
21.2 on Redhat displays the words "apropos-regexp" in blue.
21.2 on Slackware displayes the words "apropos-regexp" in bold black.
Ok, lets try M-x list-faces-display:
21.2 on Redhat shows me lots of different colors and shadings.
21.2 on Slackware shows me lots of blacks and grays.
Ok, so now I look at one of the most unreadable categories in
list-faces-display: secondary-selection.
The 21.2 Redhat box has only "foreground black" and "background cyan"
(inverse-video is not on). The 21.2 Slackware box has only "inverse
video *" (foreground and background are not on).
Perhaps Redhat changed it? I can find out!
Now I compile my own emacs (from the source I used to make the Slackware
emacs) with --prefix=/tmp/emacs. I then run my new emacs as so:
/tmp/emacs/bin/emacs -nw -q --no-site-file -l ./fixblue.el
When compiled emacs from my Slackware source, the 21.2 Redhat box has
only "foreground black" and "background cyan" (inverse-video is not
on). If I compile emacs on a Slackware box it behaves as I would
expect, and if I then copy all the executables and list files over to
the Redhat box, then the colors suddenly appear.
and activating.
The question is: WHY? I have jumped through enough hoops to be
certain that emacs is detecting something about Redhat that causes
this to happen. All I want to do is find out what, so I can put a
stop to it.
I have also tried setting my terminal to be xterm-mono, but that did not
help either. The colors still appear.
--
William Colburn, "Sysprog" <wcolburn@nmt.edu>
Computer Center, New Mexico Institute of Mining and Technology
http://www.nmt.edu/tcc/ http://www.nmt.edu/~wcolburn
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
[not found] <mailman.5595.1052158774.21513.help-gnu-emacs@gnu.org>
@ 2003-05-05 22:02 ` Edward O'Connor
2003-05-05 22:33 ` William D. Colburn (aka Schlake)
[not found] ` <mailman.5605.1052174068.21513.help-gnu-emacs@gnu.org>
2003-05-06 11:17 ` Oliver Scholz
` (2 subsequent siblings)
3 siblings, 2 replies; 10+ messages in thread
From: Edward O'Connor @ 2003-05-05 22:02 UTC (permalink / raw)
> The problem is that weird colors appear in my emacs when I run the
> command "emacs -nw -q --no-site-file" under Redhat linux.
What is the value of $TERM on the Red Hat box? The Slackware box? How do
the relavent term{cap,info} entries differ?
Ted
--
Edward O'Connor
oconnor@soe.ucsd.edu
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
2003-05-05 22:02 ` Colors and Redhat (!crystal ball) Edward O'Connor
@ 2003-05-05 22:33 ` William D. Colburn (aka Schlake)
[not found] ` <mailman.5605.1052174068.21513.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 10+ messages in thread
From: William D. Colburn (aka Schlake) @ 2003-05-05 22:33 UTC (permalink / raw)
Cc: help-gnu-emacs
In both cases TERM is emacs. I put the slackware termcap onto redhat
and it made no difference. I tried deleting termcap, and nothing
changed, nor did anything complain, so I'm pretty sure it isn't used.
I also tried xterm-mono, and xterm-xfree86.
I can't find a utility to translate compiled terminfo into readable
terminfo.
On Mon, May 05, 2003 at 03:02:15PM -0700, Edward O'Connor wrote:
>What is the value of $TERM on the Red Hat box? The Slackware box? How do
>the relavent term{cap,info} entries differ?
>
>
>Ted
>
>--
>Edward O'Connor
>oconnor@soe.ucsd.edu
>_______________________________________________
>Help-gnu-emacs mailing list
>Help-gnu-emacs@gnu.org
>http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
--
William Colburn, "Sysprog" <wcolburn@nmt.edu>
Computer Center, New Mexico Institute of Mining and Technology
http://www.nmt.edu/tcc/ http://www.nmt.edu/~wcolburn
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
[not found] ` <mailman.5605.1052174068.21513.help-gnu-emacs@gnu.org>
@ 2003-05-05 22:51 ` Edward O'Connor
0 siblings, 0 replies; 10+ messages in thread
From: Edward O'Connor @ 2003-05-05 22:51 UTC (permalink / raw)
>> What is the value of $TERM on the Red Hat box? The Slackware box? How
>> do the relavent term{cap,info} entries differ?
> In both cases TERM is emacs.
I meant, what is the value of $TERM before you run Emacs, as in, what
terminal emulator are you using.
Ted
--
Edward O'Connor
oconnor@soe.ucsd.edu
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
2003-05-05 18:19 William D. Colburn (aka Schlake)
@ 2003-05-06 10:35 ` Eli Zaretskii
0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2003-05-06 10:35 UTC (permalink / raw)
> Date: Mon, 5 May 2003 12:19:22 -0600
> From: "William D. Colburn (aka Schlake)" <wcolburn+help-gnu-emacs@nmt.edu>
>
> The problem is that weird colors appear in my emacs when I run the
> command "emacs -nw -q --no-site-file" under Redhat linux.
> ...
> [long and detailed description omitted]
> ...
It sounds like on slackware, Emacs works without colors, while RedHat
has its version and/or terminal set up for text-mode colors.
One way of forcing Emacs to not use colors is to set the TERM
environment variable to some terminal that doesn't support colors. (A
future version of Emacs will have a command-line switch to disable
color support on text-mode terminals.)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
[not found] <mailman.5595.1052158774.21513.help-gnu-emacs@gnu.org>
2003-05-05 22:02 ` Colors and Redhat (!crystal ball) Edward O'Connor
@ 2003-05-06 11:17 ` Oliver Scholz
2003-05-06 13:18 ` Glenn Morris
2003-05-06 16:52 ` Kai Großjohann
3 siblings, 0 replies; 10+ messages in thread
From: Oliver Scholz @ 2003-05-06 11:17 UTC (permalink / raw)
"William D. Colburn (aka Schlake)" <wcolburn+help-gnu-emacs@nmt.edu> writes:
[Colours on emacs -nw]
> I have also tried setting my terminal to be xterm-mono, but that did not
> help either. The colors still appear.
[...]
I don't know much about terminfo and the way Emacs uses it, so I have
just two wild guesses. Did you try "xterm" instead of "xterm-mono"?
The other thing is: maybe it's not the Emacs sources that are
different on RedHat but the terminfo entries.
Oliver
--
17 Floréal an 211 de la Révolution
Liberté, Egalité, Fraternité!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
[not found] <mailman.5595.1052158774.21513.help-gnu-emacs@gnu.org>
2003-05-05 22:02 ` Colors and Redhat (!crystal ball) Edward O'Connor
2003-05-06 11:17 ` Oliver Scholz
@ 2003-05-06 13:18 ` Glenn Morris
2003-05-06 16:55 ` Kai Großjohann
2003-05-06 16:52 ` Kai Großjohann
3 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2003-05-06 13:18 UTC (permalink / raw)
"William D. Colburn (aka Schlake)" wrote:
[a long description]
My summary:
Red Hat (unspecified version)
emacs-21.2 -nw -q --no-site-file
[I assume this is under X. We still don't know which terminal
emulator, or the value of $TERM before Emacs is started]
M-x list-faces-display shows unreadable colours for many faces
In particular, bold-face is blue
On Slackware, everything is black and white
My guess as to why you get bold in blue would be the file
/usr/X11R6/lib/X11/app-defaults/XTerm
which contains (Red Hat 7.3):
! Enable Colour by default.
*VT100*colorMode: on
*VT100*boldColors: on
*VT100*dynamicColors: on
...
*VT100*colorBDMode: on
...
*VT100*colorBD: blue3
> I have also tried setting my terminal to be xterm-mono, but that did
> not help either. The colors still appear.
Now that is weird. Exactly the same colours as before?
I use Red Hat 7.3, with aterm as the terminal emulator.
Emacs is version 21.2 from the Red Hat RPM. $TERM is "xterm".
I can reproduce something of what you describe, in that if I start
Emacs in the way you specified, I get some coloured faces (eg for
bold). The colours seem fine to me, unless I do mildly sneaky things
like
xterm -fg black -bg white
which is the opposite to the colours I have specified via
~/.Xdefaults. Then the colours are not so good.
But if I set TERM to xterm-mono before starting Emacs, I get no
colour, except for the bold and underline colours I have specified in
~/.Xdefaults.
Do you have a file ~/.Xdefaults or ~/.Xresources? Either create one,
or add the following lines at the end of it. Then run `xrdb
~/.Xdefaults', then open a new xterm, and try Emacs in that.
XTerm*VT100*colorMode: false
XTerm*VT100*boldColors: false
XTerm*VT100*dynamicColors: false
XTerm*VT100*colorBDMode: false
XTerm*VT100*colorULMode: false
PS I guess you get this blue bold outside of Emacs as well. For
example, does `man man' give blue highlighting?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
[not found] <mailman.5595.1052158774.21513.help-gnu-emacs@gnu.org>
` (2 preceding siblings ...)
2003-05-06 13:18 ` Glenn Morris
@ 2003-05-06 16:52 ` Kai Großjohann
2003-05-06 20:02 ` William D. Colburn (aka Schlake)
3 siblings, 1 reply; 10+ messages in thread
From: Kai Großjohann @ 2003-05-06 16:52 UTC (permalink / raw)
"William D. Colburn (aka Schlake)" <wcolburn+help-gnu-emacs@nmt.edu> writes:
> To see the first indication something is wrong, try the command:
> emacs -nw -q --no-site-file
>
> I am used to, and expecting, a white screen with black text, except for
> the mode bar at the bottom which will be a black background with white
> text. However:
> 21.2 on redhat will have the word "*scratch*" in a blue bar.
Ah. Are you running Emacs under X11 in xterm or konsole or
gnome-terminal or somesuch program? You can configure these programs
(well, xterm at least) to display bold text not just bold, but also
in some color.
For example, I'm guessing that the following command also shows a
bold blue word:
echo `tput smso` isitblue `tput rmso`
Hm. smso and rmso appear to be the wrong names -- they produce
inverted video in my konsole. Anyone out there know how to produce
bold text?
So Emacs is just telling the terminal to print bold, and it's not
Emacs' fault that the Redhat terminal does something special with it...
--
file-error; Data: (Opening input file no such file or directory ~/.signature)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
2003-05-06 13:18 ` Glenn Morris
@ 2003-05-06 16:55 ` Kai Großjohann
0 siblings, 0 replies; 10+ messages in thread
From: Kai Großjohann @ 2003-05-06 16:55 UTC (permalink / raw)
Glenn Morris <gmorris+news@ast.cam.ac.uk> writes:
> *VT100*colorBDMode: on
> ...
> *VT100*colorBD: blue3
Note that these tell xterm to display bold text in blue.
I just looked, and Emacs in konsole (the KDE program) shows the mode
line in inverse video, whereas Emacs in xterm also shows the buffer
name ("*scratch*") in bold.
--
file-error; Data: (Opening input file no such file or directory ~/.signature)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Colors and Redhat (!crystal ball)
2003-05-06 16:52 ` Kai Großjohann
@ 2003-05-06 20:02 ` William D. Colburn (aka Schlake)
0 siblings, 0 replies; 10+ messages in thread
From: William D. Colburn (aka Schlake) @ 2003-05-06 20:02 UTC (permalink / raw)
Cc: help-gnu-emacs
I never really thought it was emacs' fault about the colors. There are
so many things wrong with Redhat I felt Redhat was to blame, I just
couldn't figure out what Redhat had done to make emacs different.
I had, at one point, searched that directory tree for Xdefaults for
emacs, but never found any, so I had completely disregarded that as the
reason.
Anyway, I put this in my .Xdefaults and all is well for me:
*VT100*colorMode: false
*VT100*boldColors: false
*VT100*dynamicColors: false
*VT100*colorBDMode: false
So I must thank you all from the bottom of my heart.
On Tue, May 06, 2003 at 06:52:18PM +0200, Kai Großjohann wrote:
>Hm. smso and rmso appear to be the wrong names -- they produce
>inverted video in my konsole. Anyone out there know how to produce
>bold text?
>
>So Emacs is just telling the terminal to print bold, and it's not
>Emacs' fault that the Redhat terminal does something special with it...
>
>--
>file-error; Data: (Opening input file no such file or directory ~/.signature)
>_______________________________________________
>Help-gnu-emacs mailing list
>Help-gnu-emacs@gnu.org
>http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
--
William Colburn, "Sysprog" <wcolburn@nmt.edu>
Computer Center, New Mexico Institute of Mining and Technology
http://www.nmt.edu/tcc/ http://www.nmt.edu/~wcolburn
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-05-06 20:02 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.5595.1052158774.21513.help-gnu-emacs@gnu.org>
2003-05-05 22:02 ` Colors and Redhat (!crystal ball) Edward O'Connor
2003-05-05 22:33 ` William D. Colburn (aka Schlake)
[not found] ` <mailman.5605.1052174068.21513.help-gnu-emacs@gnu.org>
2003-05-05 22:51 ` Edward O'Connor
2003-05-06 11:17 ` Oliver Scholz
2003-05-06 13:18 ` Glenn Morris
2003-05-06 16:55 ` Kai Großjohann
2003-05-06 16:52 ` Kai Großjohann
2003-05-06 20:02 ` William D. Colburn (aka Schlake)
2003-05-05 18:19 William D. Colburn (aka Schlake)
2003-05-06 10:35 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.