
Smenu is a command-line utility that allows you to use words coming from the standard input to create a nice selection window just below the cursor. Your selection will then be sent to standard output.
You can use it to create interactive menus in scripts, for instance.