<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>57416</bug_id>
          
          <creation_ts>2004-07-17 14:39 0000</creation_ts>
          <short_desc>mutt: slang and transparency</short_desc>
          <delta_ts>2005-08-17 13:23:54 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>bjoern.michaelsen@gmail.com</reporter>
          <assigned_to>agriffis@gentoo.org</assigned_to>
          <cc>ciaran.mccreesh@googlemail.com</cc>
    
    <cc>mmokrejs@ribosome.natur.cuni.cz</cc>
    
    <cc>net-mail@gentoo.org</cc>
    
    <cc>sithglan@stud.uni-erlangen.de</cc>
    
    <cc>taviso@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>bjoern.michaelsen@gmail.com</who>
            <bug_when>2004-07-17 14:39:33 0000</bug_when>
            <thetext>The ebuild mutt-1.5.6-r2 says
&quot;If you want a transparent background, please merge mutt with USE=-slang.&quot;
However, I use USE=&quot;slang&quot; and have a transparent background when I have:

  export COLORFGBG=&quot;default;default&quot;

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

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


Actual Results:  
mutt with transparency

Expected Results:  
The ebuild says: &quot;mutt without transparency&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2004-08-17 08:23:27 0000</bug_when>
            <thetext>Could you either explain the COLORFGBG variable or point to additional documentation?  I don&apos;t understand the ramifications of setting it manually, and I  don&apos;t want to put advice in the ebuild without fully understanding it.

Ciaran, any thoughts here?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2004-08-17 09:35:33 0000</bug_when>
            <thetext>If COLORFGBG contains the string &apos;default&apos; as the last value, it&apos;s effectively unusable (default could mean light or dark, or maybe some random colour). I&apos;m guessing that if mutt / slang can&apos;t handle COLORFGBG cleanly, it just gives up and doesn&apos;t try to do anything at all with the background...

Setting it to default;default won&apos;t do anything majorly screwy, it&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bjoern.michaelsen@gmail.com</who>
            <bug_when>2004-08-17 11:26:06 0000</bug_when>
            <thetext>I just tried a few permutations. It seems that mutt/slang just care that COLORFGBG is set at all:
For:
  export COLORFGBG=&quot;default;light&quot;
  export COLORFGBG=&quot;default;dark&quot;
  export COLORFGBG=&quot;default;aa&quot;
  export COLORFGBG=&quot;aa;default&quot;
transparency works.
For:
  export COLORFGBG=&quot;aa;aa&quot;
it doesnt work. So the tip in the ebuild might be to set COLORFGBG to anything valid to get transparency working ...
  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2004-08-17 11:34:30 0000</bug_when>
            <thetext>Try two integers from 0..15, like COLORFGBG=&quot;15;0&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sithglan@stud.uni-erlangen.de</who>
            <bug_when>2004-08-18 01:29:14 0000</bug_when>
            <thetext>Add the following to your profile:

export COLORFGBG=&quot;default;default&quot;
for borne shell style shells or


setenv COLORFGBG &quot;default;default&quot;
for C-style shells

and it should work like a charm

Greetings,
       Thomas</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2004-08-18 08:42:34 0000</bug_when>
            <thetext>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?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2004-10-25 12:37:06 0000</bug_when>
            <thetext>*** Bug 68625 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mmokrejs@ribosome.natur.cuni.cz</who>
            <bug_when>2005-08-07 17:27:18 0000</bug_when>
            <thetext>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&apos;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&apos;t see much reason why slang should
be preferred. ncurses offers a lot more. Why have two libs and term definitions?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2005-08-17 13:23:54 0000</bug_when>
            <thetext>ok, mutt-1.5.10 now ignores USE=slang, preferring to always use ncurses.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>