Form type input for the console

Form type input for the console

am 09.11.2007 15:25:41 von Justin C

I'm looking to collect some repetitive data from the command line. It'd
be nice to have an on-screen form for the users. I've never used perl
for this kind of thing before, can anyone point me at some relevant
documentation for generating an on-screen form? Learning Perl
doesn't get that far.

Thank you for any suggestions/pointers you can give.

Justin.

--
Justin C, by the sea.

Re: Form type input for the console

am 09.11.2007 17:47:32 von Michele Dondi

On Fri, 09 Nov 2007 14:25:41 -0000, Justin C
wrote:

>I'm looking to collect some repetitive data from the command line. It'd
>be nice to have an on-screen form for the users. I've never used perl
>for this kind of thing before, can anyone point me at some relevant
>documentation for generating an on-screen form? Learning Perl
>doesn't get that far.
>
>Thank you for any suggestions/pointers you can give.

Perhaps Curses & C.?


Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^ ..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER 256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,

Re: Form type input for the console

am 09.11.2007 17:50:06 von Sherm Pendley

Justin C writes:

> I'm looking to collect some repetitive data from the command line. It'd
> be nice to have an on-screen form for the users.

Do you mean in a terminal window? If so, have a look at the Curses module.

sherm--

--
WV News, Blogging, and Discussion: http://wv-www.com
Cocoa programming in Perl: http://camelbones.sourceforge.net

Re: Form type input for the console

am 09.11.2007 18:06:14 von glex_no-spam

Justin C wrote:
> I'm looking to collect some repetitive data from the command line. It'd
> be nice to have an on-screen form for the users. I've never used perl
> for this kind of thing before,

What have you used for this kind of thing before? Maybe that'll
help someone figure out what you're asking for.

> can anyone point me at some relevant
> documentation for generating an on-screen form? Learning Perl
> doesn't get that far.

Possibly Curses?

http://search.cpan.org/~giraffed/Curses-1.17/gen/make.Curses .pm

Or using Tk to provide a nice interface:

http://search.cpan.org/~vkon/Tcl-Tk-0.97/lib/Tcl/Tk.pm

Or using HTML and CGI?

Or reading/storing the replies to prompts and using those replies
when needed.

Or providing an example of the repetitive data and how it's
to be used, maybe an 'on-screen form' isn't the best thing
to do.

Re: Form type input for the console

am 12.11.2007 16:30:21 von Justin C

On 2007-11-09, J. Gleixner wrote:
> Justin C wrote:
>> I'm looking to collect some repetitive data from the command line. It'd
>> be nice to have an on-screen form for the users. I've never used perl
>> for this kind of thing before,
>
> What have you used for this kind of thing before? Maybe that'll
> help someone figure out what you're asking for.

Web-browser based form.


> > can anyone point me at some relevant
>> documentation for generating an on-screen form? Learning Perl
>> doesn't get that far.
>
> Possibly Curses?

That seems most likely, thank you, and thanks also to Michele and
Sherman for mentioning it too.


> Or reading/storing the replies to prompts and using those replies
> when needed.

I'm not certain what you mean, but that may be down to you not
understanding what I mean.


> Or providing an example of the repetitive data and how it's
> to be used, maybe an 'on-screen form' isn't the best thing
> to do.

It's: contact name, business name, address, town, zip, country, tel,
fax, email.

I'm after a quick and dirty way of collecting these into a plain text
file for later import to a database. My reason for wanting to use a
terminal, rather than a web-browser, is speed. My typists are efficient,
I don't want them delayed by slow web-browsers.

Thanks for the suggestions, if the above stimulates further ideas I'd be
happy to hear them.

Justin.

--
Justin C, by the sea.