{The jcolname Colour Selection Panel

Introduction
The jcolname application is just a wrapper around the j:prompt_colour_name procedure in the jprompts.tcl library.  It's intended to make it easy to ask the user to select a colour from shell scripts.

This document describes jcolname version 1998.11.04.

Copyright and contact information is available in the jstools documentation.

Invocation and Usage
	jcolname [-prompt prompt] [-title title]

Invoking jcolname causes a panel to appear that lets the user select a colour by name from a listbox.  A patch of the current colour is displayed.  When the user clicks OK, or double­clicks a colour, the current colour is written to standard output.  A label displaying prompt will be at the top of the panel, and it's window­manager title will be title.

Both prompt and title are localisable.

If the X11 colour database is not in /usr/lib/X11/rgb.txt, then only a small hard­coded list of colours will be displayed.

For more details, see the documentation for j:prompt_colour_name in the jprompts.tcl library.

Example
xsetroot -solid `jcolname -prompt "Root Window Colour:"`

Evolution
Feel free to report bugs (and feature requests) to me, <js@aq.org>, and I will try to deal with them.  Also, feel free to fix bugs or add features on your own and let me know how you did it.


} {{{jdoc:anchor:anchorname {3.0 4.0 10.0 11.0 21.0 22.0 24.0 25.0}} {sel {6.41 6.51}} {jdoc:xref:link {4.54 4.74 4.92 4.104 8.0 8.33 8.50 8.75 15.26 15.37 19.44 19.64 19.72 19.84}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.12 4.54 4.74 4.92 4.104 6.24 6.32 8.54 8.61 10.0 11.10 11.11 11.25 11.26 11.27 11.28 11.40 13.9 13.17 13.270 13.276 13.348 13.353 15.5 15.11 15.16 15.21 17.37 17.57 19.44 19.64 19.72 19.84 21.0 23.0 24.0 25.0 25.55 25.66 25.190}} {richtext:font:italic {11.19 11.25 11.35 11.40 13.270 13.276 13.348 13.353 15.5 15.11 15.16 15.21}} {richtext:font:bold {4.92 4.104 8.54 8.61 19.72 19.84}} {richtext:font:typewriter {4.4 4.12 4.54 4.74 6.24 6.32 11.0 11.10 11.11 11.19 11.26 11.27 11.28 11.35 13.9 13.17 17.37 17.57 19.44 19.64 22.0 23.0 25.55 25.66}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 10.0 11.0 21.0 22.0 24.0 25.0}} {jdoc:link:jstools.jdoc {8.50 8.75}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:anchorname:Evolution {24.0 25.0}} {jdoc:link:jstools.jdoc#Credits_and_Copyright {8.0 8.33}} {jdoc:anchorname:Invocation_and_Usage {10.0 11.0}} {jdoc:link:jprompts.tcl.jdoc {4.92 4.104 19.72 19.84}} {jdoc:anchorname:Example {21.0 22.0}} {jdoc:link:jprompts.tcl.jdoc#j:prompt_colour_name {4.54 4.74 19.44 19.64}} {jdoc:link:localisable.jdoc {15.26 15.37}}} {{del_from 23.0} {abbrevstart 6.51} {richptr 4.104} {abbrevend 6.52} {insert 6.51} {anchor 6.52} {del_to 23.0} {current 4.132}}} {}