{The jprompt Input Panel

Introduction
The jprompt application is just a wrapper around the j:prompt procedure in the jprompts.tcl library.  It's intended to make it easy to ask the user for a line of input from shell scripts, window­manager menus, etc.

This help file describes jprompt version 4.1/4.4.

Copyright and contact information is available in the jstools documentation.

Invocation and Usage
	jprompt [-text text] [-char char] [-history name] [other options]

Invoking jprompt brings up a panel displaying text with an entry field for the user to type a response into and OK and Cancel buttons.  The window­manager title will be title.  When the user clicks OK, jprompt exits and writes what the user typed to standard output.  If the user clicks Cancel, jprompt exits and, by default, writes nothing (except a newline) to standard output.

If -show char is specified, and char is not an empty string, then the entry will not display characters typed; the first character of char will be displayed in their place.  This is useful for requesting passwords. (Warning: This doesn't work under versions of Tk prior to 4.0.)

If -history name is specified, values entered will be stored (persistently) in the history list named name; this lets users easily re­use previously entered values.

The value printed on Cancel can be specified, and there are a few other options not mentioned in this document; for full details, see the documentation for j:prompt in the jprompts.tcl library.

Both text and title are localisable.

Example
cat /tmp/out.$$ | enscript -2r -b`jprompt -text "Printout Title"`

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 23.0 24.0 26.0 27.0}} {sel {6.41 6.48}} {jdoc:xref:link {4.53 4.61 4.79 4.91 8.0 8.33 8.50 8.75 19.156 19.164 19.172 19.184 21.24 21.35}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.11 4.53 4.61 4.79 4.91 6.25 6.32 8.54 8.61 10.0 11.9 11.10 11.20 11.21 11.22 11.23 11.33 11.34 11.35 11.36 11.44 11.45 11.49 11.50 11.51 11.52 11.65 13.9 13.16 13.46 13.50 13.169 13.174 13.202 13.209 13.295 13.302 15.3 15.13 15.32 15.36 15.134 15.138 15.216 15.224 17.3 17.16 17.102 17.106 19.156 19.164 19.172 19.184 21.5 21.9 21.14 21.19 23.0 25.0 26.0 27.0 27.55 27.66 27.190}} {richtext:font:italic {11.16 11.20 11.29 11.33 11.45 11.49 11.52 11.65 13.46 13.50 13.169 13.174 15.9 15.13 15.32 15.36 15.134 15.138 17.12 17.16 17.102 17.106 21.5 21.9 21.14 21.19}} {richtext:font:bold {4.79 4.91 8.54 8.61 15.216 15.224 19.172 19.184}} {richtext:font:typewriter {4.4 4.11 4.53 4.61 6.25 6.32 11.0 11.9 11.10 11.16 11.21 11.22 11.23 11.29 11.34 11.35 11.36 11.44 11.50 11.51 13.9 13.16 13.202 13.209 13.295 13.302 15.3 15.9 17.3 17.12 19.156 19.164 24.0 25.0 27.55 27.66}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 10.0 11.0 23.0 24.0 26.0 27.0}} {jdoc:link:jstools.jdoc {8.50 8.75}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:anchorname:Evolution {26.0 27.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.79 4.91 19.172 19.184}} {jdoc:anchorname:Example {23.0 24.0}} {jdoc:link:jprompts.tcl.jdoc#j:prompt {4.53 4.61 19.156 19.164}} {jdoc:link:localisable.jdoc {21.24 21.35}}} {{del_from 25.0} {abbrevstart 18.0} {richptr 22.0} {abbrevend 18.0} {insert 6.48} {anchor 7.0} {del_to 25.0} {current 11.32}}} {}