xterm256 support in colour trigger pattern
Bug #1408515 reported by
Vadim Peretokin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mudlet |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
We should add xterm256 support for matching triggers with. Has been requested by a user: http://
It will need a new dialogue as the current selection of a colour is from a pop-up dialogue (dlgColorTrigger class) with 16 buttons that is called from dlgTriggerEdito r::slot_ color_trigger_ fg() and dlgTriggerEdito r::slot_ color_trigger_ fg(). I think I did play with this a while back so I will have to dig around and see how far I got.
I think I got bogged down with the fact that those 16 colours used on the existing selection dialog are the user redefine-able 16-ANSI colours and I was unclear where to get the other (256 - 16) colour definitions from - also there needs to be a way to choose the "default" foreground or background colour (depending on the caller slot method)...
Things may also be complicated as I think there are duplicate colours in the 256 colour set where there are the same RGB values for the 16 ANSI colours, the 6^3 other colours and the 24 grey-scale - for colour triggers do we detect on the colour RGB values or on the ANIS colour codes?