% /usr/bin/X11/showrgb > myrgb.txt
Edit this file to weed out the colours you dont need. There will be quite a few; the XR11.4 database contains > 200. If you want a feel for the look of the different colours, use the UNIX shell script dispcol:
% dispcol < myrgb.txt > tmp
The file tmp contains a series of ODL drawing instructions that can be displayed in O using the Draw command:
O > draw tmp
There is another shell script, mkcol, that will generate the relevant datablocks.
% mkcol < myrgb.txt > junk
Then, inside O, read the file using Read_formatted:
O > read junk
and you are set to go.