readpreprompt 0.1 review

Download
by rbytes.net on

readpreprompt is a simple program to read a string of text from the user. The difference between this program and the bash builtin

License: GPL (GNU General Public License)
File size: 279K
Developer: /dev/kev
0 stars award from rbytes.net

readpreprompt is a simple program to read a string of text from the user.

The difference between this program and the bash builtin "read" command is that this program allows you to specify text that will be initially placed into the input edit buffer.

That is, you can specify "default" input text that has been "pre-typed" for the user.

Usage:
readpreprompt < prompt > [initial_text]
where:
< prompt > is the prompt to show the user. This is required, if you do not want a prompt, use "".
[initial_text] is the (optional) initial text to present to the user.

The prompt and user editing is done on stderr, and the user's input is printed to stdout (without trailing newline) when the user hits enter.

Requirements:
GNU readline

readpreprompt 0.1 search tags