[wish] colored chatlog

Bug #370812 reported by Stefan Kriwanek (Divan)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Return To The Roots
Status tracked in S25client
S25client
Fix Committed
Wishlist
FloSoft

Bug Description

I'd like to have the authors in the console chatlog colored, like in the game.

I've done a patch that does this on linux machines and will try to add one for windows, too.

Revision history for this message
Stefan Kriwanek (Divan) (dev-stefankriwanek) wrote :
NastX (jtrampe)
Changed in s25rttr:
importance: Undecided → Wishlist
status: New → Fix Committed
Revision history for this message
Stefan Kriwanek (Divan) (dev-stefankriwanek) wrote :

A second patch, to include colored chat destination (All, Allies, Enemies)

Revision history for this message
Stefan Kriwanek (Divan) (dev-stefankriwanek) wrote :

A try on windows. please test.

Revision history for this message
FloSoft (flosoft) wrote : Re: [Bug 370812] Re: (wish) colored chatlog

applied in 4834 (and fixed some bugs in that patch)

Divan schrieb:
> A try on windows. please test.
>
> ** Attachment added: "termcolor_win.patch"
> http://launchpadlibrarian.net/26446508/termcolor_win.patch
>

FloSoft (flosoft)
summary: - (wish) colored chatlog
+ [wish] colored chatlog
Revision history for this message
Stefan Kriwanek (Divan) (dev-stefankriwanek) wrote :

FloSoft once asked for a better match between ingame and terminal colors. Yesterday I discovered that most Linux terminals support 256 colors and (at least) xterm and gnome-terminal can even change the palette. Here's the code to make use of both, I feel it looks very nice compared to now; furthermore colors cannot get jumbled by using modifyed 16 ANSI colors anymore.

Unfortunately there seems to be no reliable way to figure out a terminal's capabilities (as we're running an X game we can safely assume 256 color support, but not a dynamic palette, e.g. konsole does not support it.) Therefore, my patch contains a minor regression: on those terminals with a static palette, both dark gray and dark brown are mapped onto two nearly indistinguishable levels of gray. For me, however, the current mapping of gray/brown/orange looks much more weird.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.