gui text box code snippet?

Hello,

I have written some scripts that query the user and waits for keyboard input for an answer. I was wondering if there is any generic code snippets out there that would allow me to run this as a GUI. I am thinking of a simple dialogue box that would display the question and have a text entry field.

I would like to hear of any and all options or ideas on this. I am open to writing the programs in Perl, or C if that is what it takes to implement this.

Thank you,

It depends on the environment. If you plan to use this in gnome or a system with gnome installed you could simply use:

zenity --entry --text="Insert your text here:"

Otherwise you might have the option of using dtksh.