did -i $dname 1 1 settxt color $rgb($color(listbox text))
i cant understand why it wouldnt evalute it properly
The easiest way to explain that is...
//echo -a $rgb($color(action))
//echo -a $color($color(action))
See the difference?

The second result is what mdx is expecting.