bugWeeChat - Bugs: bug #36999, Colors are fubarred


bug #36999: Colors are fubarred

Submitter:  None
Submitted:  Tue 31 Jul 2012 01:46:38 AM UTC
Category:  display Severity:  3 - Normal
Item Group:  display Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.3.8
IRC nick:  onox
* Mandatory Fields

Add a New Comment Rich Markup

Sat 18 Aug 2012 01:40:08 PM UTC, comment #5: 

I just installed a new version from port that has the imported patch from git, and all problems seem to be gone! :D So thanks! :)

Fri 17 Aug 2012 09:14:03 AM UTC, comment #4: 

Finally fixed the bug in WeeChat.
For me the problem is still in ncurses (pair not set by wattr_set), but I added another call in WeeChat to force the restore of color (wcolor_set).

Old code was:

wattr_set (GUI_WINDOW_OBJECTS(window)->win_chat, attrs, pair, NULL);

New code is:

wattr_set (GUI_WINDOW_OBJECTS(window)->win_chat, attrs, pair, NULL);
wcolor_set (GUI_WINDOW_OBJECTS(window)->win_chat, pair, NULL);

The call to wcolor_set should not be needed, but at least it fixes the problem under FreeBSD.

Sebastien Helleu <flashcode>
Group administrator
Tue 31 Jul 2012 12:16:40 PM UTC, comment #3: 

As I said, exactly problem has been reported many time from FreeBSD users, and it was a problem related to libncurses (but I'm unable to say which version was ok or not).

Can you try again with 0.3.7, I'm almost sure you will have same problem with this version.

Thank you.

Sebastien Helleu <flashcode>
Group administrator
Tue 31 Jul 2012 12:11:09 PM UTC, comment #2: 

I'm using ncurses-5.9! 0.3.7 works fine. Only after updating to 0.3.8, the colors went crazy.

Tue 31 Jul 2012 06:31:45 AM UTC, comment #1: 


This is not a problem with WeeChat but with ncurses lib. Are you using version 5.9 of lib? Or can you try with this version?
Or if that does not help, maybe try to compile ncurses yourself.

Other people using FreeBSD reported same problem in past, it's a bug in ncurses which is unable to read attributes in terminal (on new lines in WeeChat I read color/attributes and I set them later).

Sebastien Helleu <flashcode>
Group administrator
Tue 31 Jul 2012 01:46:38 AM UTC, original submission:  

After I upgraded from 0.3.7 to 0.3.8, some of the colors are fubarred. The screenshots explain it all. I could modify the color via weechat.color.chat_prefix_suffix, but that doesn't fix the issue (it all still looks weird even if set to white)




(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #26292:  weechat4.png added by None (819KiB - image/png - Weird green + (voice) in front of certain nicks)
file #26289:  weechat1.png added by None (599KiB - image/png)
file #26290:  weechat2.png added by None (455KiB - image/png)
file #26291:  weechat3.png added by None (420KiB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-29 flashcode Open/ClosedOpen Closed
    2012-08-17 flashcode StatusNeed Info Fixed
    2012-07-31 flashcode StatusInvalid Need Info
    2012-07-31 flashcode StatusNone Invalid
        Assigned toNone flashcode
    2012-07-31 None Attached File- Added weechat4.png, #26292
    2012-07-31 None Attached File- Added weechat1.png, #26289
        Attached File- Added weechat2.png, #26290
        Attached File- Added weechat3.png, #26291

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code