here is a interesting but tiny problem. in my query code i expected the
prompt to have a [] in it. i would do an s/// on that to put in the
default value. the build prompt and y_n methods do something
simular. but my question is about where does that default string get
printed? if the question ends at a certain column and the default is
long enough, it forces the user input to be wrapped beyond 80
columns. also my questions were passed in as here docs (love them!) but
that causes them to end in a newline and so the default is always on the
next line. sure i can chomp off that newline and such. but still is
there any way to make the prompt print nicely with room for the default
and user input? this means if the default and user input (assume the
length of the default) is long enough to wrap, then print them on the
next line.
like i said, this isn't critical but has anyone done anything with this?
uri
--
Uri Guttman ------ ur...@st... -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
|