tkquery version 0.3 Copyright (c) 1994, 2001 by Karl J. Runge tkquery: Query user for button click response or text entry, then send response to standard output and terminate. (with option to stay active) Usage: tkquery [-e -ed "LABEL::TEXT::WIDTH" ] [ -b -bd -be "LABEL::FLAG" ] ... [ -b ... ] [-stayalive] [-d] [-t title] [-j ] [-f font] [-v] [-examples] [-h -help] [-nok -nocancel] [-m] "MESSAGE" -e entry widget (one only) with label LABEL and initial text TEXT -b button widget (any number)with label LABEL and stdout reply FLAG -t window manager title -be button widget returns "FLAG"."contents of EntryBox" -nok No "OK" button -nocancel No "Cancel" button -no => both. -i "keysym:text" bind keysym to insert "text" into entry. -m Message at top (-m optional if this is last entry) -f font (possibly just a number) for message. -cr Prepend "str" to carriage return entry string. -j (left|center|right) justification of message. whoops: (w|c|e) -d debug mode -s sleep n seconds and go away -stayalive only clicking a -bd button or -ed entry will terminate -warp try to warp cursor into our window (needs xwit(1)) -space map the spacebar keypress to invoke the button the mouse is on. -pid print the pid of the GUI process: GUIPID:NNNNN -examples print examples -h print help -v print version information When a button is pressed the contents of it''s corresponding FLAG is returned to the standard output of tkquery, which then exits. Default FLAG for OK button is 'OK' and for Cancel button is 'CANCEL'. If the entry box is present (via -e), then the contents of the entry box is returned to the standard output. If entry widget exists, then OK or in entry returns contents of entry box, otherwise OK returns ``OK''. Here are two examples: tkquery -e "Host: ::my-pc.wu.edu::16" "Enter IP address of remote host" tkquery -b Quit::QUIT -b "Sleep 60 sec::SLEEP" -b "Reboot::REBOOT" \ -no "What should we do next??"