Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57416 - mutt: slang and transparency
Summary: mutt: slang and transparency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
: 68625 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-17 14:39 UTC by Björn Michaelsen
Modified: 2005-08-17 13:23 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Michaelsen 2004-07-17 14:39:33 UTC
The ebuild mutt-1.5.6-r2 says
"If you want a transparent background, please merge mutt with USE=-slang."
However, I use USE="slang" and have a transparent background when I have:

  export COLORFGBG="default;default"

set in my enviroment.
So the "If you want a transparent background, please merge mutt with USE=-slang." warning should be replaced by a the following statement:
"If you want a transparent background, please merge mutt with USE=-slang or set COLORFGBG="default;default" in you enviroment. This can be done by executing
echo 'export COLORFGBG="default;default"' >> ~/.bashrc."

Reproducible: Always
Steps to Reproduce:
1. export COLORFGBG="default;default"
2. mutt


Actual Results:  
mutt with transparency

Expected Results:  
The ebuild says: "mutt without transparency"
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-08-17 08:23:27 UTC
Could you either explain the COLORFGBG variable or point to additional documentation?  I don't understand the ramifications of setting it manually, and I  don't want to put advice in the ebuild without fully understanding it.

Ciaran, any thoughts here?
Comment 2 Ciaran McCreesh 2004-08-17 09:35:33 UTC
If COLORFGBG contains the string 'default' as the last value, it's effectively unusable (default could mean light or dark, or maybe some random colour). I'm guessing that if mutt / slang can't handle COLORFGBG cleanly, it just gives up and doesn't try to do anything at all with the background...

Setting it to default;default won't do anything majorly screwy, it's just not a very good solution. It would be much better for mutt to provide some way to make it ignore the background and use transparent, even if background detection was available.
Comment 3 Björn Michaelsen 2004-08-17 11:26:06 UTC
I just tried a few permutations. It seems that mutt/slang just care that COLORFGBG is set at all:
For:
  export COLORFGBG="default;light"
  export COLORFGBG="default;dark"
  export COLORFGBG="default;aa"
  export COLORFGBG="aa;default"
transparency works.
For:
  export COLORFGBG="aa;aa"
it doesnt work. So the tip in the ebuild might be to set COLORFGBG to anything valid to get transparency working ...
  
Comment 4 Ciaran McCreesh 2004-08-17 11:34:30 UTC
Try two integers from 0..15, like COLORFGBG="15;0"
Comment 5 Thomas Glanzmann 2004-08-18 01:29:14 UTC
Add the following to your profile:

export COLORFGBG="default;default"
for borne shell style shells or


setenv COLORFGBG "default;default"
for C-style shells

and it should work like a charm

Greetings,
       Thomas
Comment 6 Aron Griffis (RETIRED) gentoo-dev 2004-08-18 08:42:34 UTC
This makes it sound like slang is related to rxvt.  Is that the case?

Also, does the default COLORFGBG setting from rxvt allow mutt+slang to be transparent?
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2004-10-25 12:37:06 UTC
*** Bug 68625 has been marked as a duplicate of this bug. ***
Comment 8 Martin Mokrejš 2005-08-07 17:27:18 UTC
I might be wrong, but I think slang was invented as a tiny variant of
curses/ncurses with midnight commander, because not everybody had a a good
curses library on the host. Yes, many people had termcap still. I'm not talking
much about Linux here but rather other Unixes.

Anyway, mc(1) had slang in its source tree, so if it did not find curses it
failovered to slang.

I believe on ncurses is much better and I don't see much reason why slang should
be preferred. ncurses offers a lot more. Why have two libs and term definitions?
Comment 9 Aron Griffis (RETIRED) gentoo-dev 2005-08-17 13:23:54 UTC
ok, mutt-1.5.10 now ignores USE=slang, preferring to always use ncurses.