davidk@dsinet (David Karr) (06/13/91)
I could write it myself, but if it already exists, I won't bother. I want a program which I can give approximately the following arguments to: 1. A prompt string (like "Enter the document type") 2. A string indicating the list of possible one-letter answers. 3. A string indicating the default if they just press space or return. (This could be encapsulated in the second argument.) The program would print out the prompt like this: "Enter the document type ([a]bcde)? " indicating that you can press either of a, b, c, d, or e, in addition to return or space, but if return or space is pressed, then it will default to "a". If an illegal key is pressed, it will indicate that and replot the prompt. I seem to remember a program like this being put on the net, but I can't find it anywhere. If it doesn't exist yet, I'll write it. -- Digital Systems International, Inc. David Karr 7730 177th Pl NE dsinet!davidk Redmond, WA 98073-0903 (206) 881-7544 ext. 547