[Konsole-devel] [Bug 133983] Random hue per shell not per Konsole instance

Robert Knight robertknight at gmail.com
Sun Jul 8 03:01:19 UTC 2007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
robertknight gmail com changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

------- Additional Comments From robertknight gmail com  2007-07-08 05:01 -------
Implemented in KDE 4.  There is no GUI interface to control the randomness of colors yet, as I still have to think carefully about that.  This means that editing the color schemes manually is necessary to make use of this at present.

The way random color schemes are implemented is that for each slot in the terminal's color palette, a base color is specified.  There are then three additional optional properties which control how much that base color is allowed to be randomly adjusted for each terminal session which uses the color scheme - one for hue, one for saturation and one for value.  

eg.  From the supplied BlackOnRandomLight.colorscheme file:


(There are also MaxRandomSaturation and MaxRandomValue attributes which can be used.  The hue, saturation and value attributes have maximum values of 340,255 and 255 respectively)

Internally, each terminal display has a key which depends uniquely on the session it is displaying.  When the color table is updated for a particular display, the terminal display's key is used to seed the random number generator which is used to randomize the colors within the allowed range.

More information about the konsole-devel mailing list