xprompt
Display a prompt in a dialog box, and printf the result
- Contributed by
- Larry Philps
- Obtained from
- News
- Restrictions
- Public Domain
- Description
-
This program displays an arbitrary prompt in a X dialogue
box in the centre of your screen. You can type into it
without having to move your mouse into the new window.
The text you input, is then returned on stdout.
This is useful for menus displayed by your window manager.
If you need an argument for the program you want to launch,
you cat get it by using xprompt in backquotes in place of
the arguments.
The X resources in a file called "res" in the source
directory will make the dialogue box look nice on an NCD.
- Productivity
- Useful. Solves a problem that is hard to solve otherwise.
- Safety
- Examined code + Used it for a months
- Work Planned
- None.
- Documentation
- Manual page
- Verification
- Run xprompt -p hostname. You should get a dialogue box
with the prompt "hostname". Enter something it will be
printed on stdout.
Note that all this source is configured to be installed under
/usr/skunk.
To build it for a different location, compile with
make CTRBDESTDIR=directory.