Bug 769100

Summary: urxvt256c does not display bold font in mc
Product: [Fedora] Fedora Reporter: Marcin Kulik <m>
Component: mcAssignee: Jindrich Novy <jnovy>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: dvlasenk, jnovy, pahan, pknirsch, slavazanko
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-11 16:24:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marcin Kulik 2011-12-19 22:20:12 UTC
Description of problem:
When opening mc in rxvt-unicode (256 colors version, urxvt256c) the are no bold fonts used for directory names.

Version-Release number of selected component (if applicable):
4.8.0-2.fc16

How reproducible:
Always

Steps to Reproduce:
1. open urxvt256c
2. run mc
  
Actual results:
No bold font for directories

Expected results:
Bold fonts for directories

Additional info:
This is most likely related to this old issue: https://bugzilla.redhat.com/show_bug.cgi?id=474108

Comment 1 Slava Zanko 2011-12-20 12:43:53 UTC
Since 4.8.0 mc have full support of 256 colour terminals, also colour support was reimplemented (for correct usage SLTT_BOLD_MASK too).

Can you try use 256-color skin, such as sand256 or xoria256?
just run mc as:

TERM=xterm-256color mc -S sand256

or

TERM=xterm-256color mc -S xoria256

Also, provide, please, your TERM variable when you have started urxvt256c terminal emulator.

Comment 2 Marcin Kulik 2011-12-20 21:42:23 UTC
I have run TERM=xterm-256color mc -S xoria256 and it correctly displays bold fonts for directories.

My TERM variable set by urxvt256c is "rxvt-unicode-256color".

Comment 3 Slava Zanko 2011-12-22 20:02:19 UTC
Okay, you may do the next steps:

$ mkdir -p ~/.local/share/mc/skins
$ cp /usr/share/mc/skins/default.ini ~/.local/share/mc/skins
$ mcedit ~/.local/share/mc/skins/default.ini

search [filehighlight] section and replace string

directory=white;

by

directory=white;;bold

I hope, this will be helpfull tip for you.

Comment 4 Marcin Kulik 2011-12-24 12:17:31 UTC
Thanks, it works.

For now I have following alias in my .zshrc:

    mc='TERM=xterm /usr/bin/mc'

That does the job without a need for modified skin file.

Comment 5 Jindrich Novy 2012-09-11 16:24:10 UTC
Ok, closing this bug as this seems to be resolved.