You might look at Expect instead. If the goal is to make things easier for the user, even in the face of stubbornly hard-to-use tools, running those tools via Expect will let you mediate the dialog in ways that can really make things easier for the user.
Comment on Re^7: embedding xterm in perl/tk window