Bug 237793

Summary: font color problem
Product: [Fedora] Fedora Reporter: Keith Roberts <keith>
Component: mcAssignee: Jindrich Novy <jnovy>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: leonard-rh-bugzilla, mishu, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: N/A
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-18 11:43:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Keith Roberts 2007-04-25 14:22:17 UTC
I'm using mc-4.6.1a-35.fc6 on three different
machines. There is a problem with the directory colors
showing the same as ordinary files, and not bold white.

When I highlight a file with the insert key, it shows up as
a rusty brown color, not yellow. The same applies to the
yellow highlighting in the dialogues.

Any ideas why this is happening please, and what to do to
fix the colors so they work correctly?

Other Linux distros mc packages worked OK on these
platforms, including SuSE, Debian, and Kubuntu.

How reproducible: Always

Steps to Reproduce:
1. Start the CLI version of mc - (not the X11 version as that works OK)

Comment 1 Jindrich Novy 2007-06-18 11:43:44 UTC
The problem is that the default font for console font doesn't support "bold"
extension and uses wider range of characters (512) instead. For that reason the
font support only 8 colors. You need a font that support more colors. To do this
type, say:

setfont lat1-16

This font supports 16 colors.

Comment 2 Keith Roberts 2007-09-17 16:41:52 UTC
Thanks for that Jindrich. I have added the setfont lat1-16 command to my
/etc/profile file, and now whenever I log in as root or normal user under the
CLI and start mc,the font problem is resolved. (Would it not be better to
support a 16 color font as standard if FC CLI mode?)

However, when running KDE and logging into a root shell, I get the following
message:

Password:
putfont: PIO_FONT: Invalid argument
[root@fc6-localhost ~]# qps

This doesn't happen as a normal user. There does not seem to be any adverse
effects either after getting this message. mc font colors still work ok.


Comment 3 Keith Roberts 2007-10-09 21:53:24 UTC
Apparently, according to Ignacio Vazquez-Abrams from the Fedora Core
<fedora-test-list>

"The correct fix is to change the console font that is being used in the
appropriate configuration file (which is /etc/sysconfig/i18n, for those
not paying attention)."

So I changed that to:

SYSFONT="lat1-16"

and removed the patch at the end of /etc/profile.

It works fine now, Maybe this could be the default font for Fedora 8 please?