in reply to Term::Visual colors
I'm not sure if this fits your needs, but after some searching, i did not find any regular way to do this. Therefore I'd search for a scheme-file, like for xterm from kde in /usr/share/apps/konsole. Read that file in perl, and set the colors manually.