1 .TH xgetline 1 "15 November 1998" "Edgeware tools"
3 xgetline \- request a line of text in an X dialogue box
15 program reads a line of text from the user via a pretty GTK dialogue
16 box. The title bar contents, prompt string, and default text are all
17 configurable. If the user enters a string and clicks the
22 the string is echoed to standard output and
24 returns an exit status of zero. If the user cancels the dialogue box
25 (by closing it, or pressing
28 echoes nothing and returns an exit status of one.
32 program is intended to be used in window manager configuration files, to
33 allow users to fill in bits of text (e.g., hostnames or shell commands)
34 in generally useful places. For example, the author has the following
35 shell command attached to a hotkey:
40 cmd=`xgetline -t "Shell command in window" -p "Command:"` &&
41 xterm -T "$cmd" -e sh -c "$cmd"
46 .BI "\-t, \-\-title " title
47 Sets the title of the dialogue box to
50 .RB ` "Input request" '.
52 .BI "\-p, \-\-prompt " prompt
53 Sets the prompt string in the dialogue box to
55 The default is to have no prompt string.
57 .BI "\-d, \-\-default " default
58 Sets the default text in the entry field to
60 The default default is the empty string.
62 Mark Wooding (mdw@nsict.org).