o(o_o)o has asked for the wisdom of the Perl Monks concerning the following question:
I'm stating to implement an idea of mine, and instead of making it Gui straight away, i am designing it to run on the command line.. so i run it, and it makes a prompt like:
myprompt->
myprompt->load file.dat
file loaded!
myprompt->
where i give it commands etc...
the thing is, i want to design the program so that it can be fully used on the command line as i have just said... but want to make it possible to easily write a Gui frontend for it, hopefully with no editting of the current written program... so the Gui frontend would run the program and make changes and issue commands to it..
what i want is advice on how i would implement the command line program... would i just make it "print" and readline using <>, then grad those from the gui in the future, or is there a definiative way to write a command line program for a gui future?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Making a program for a gui future
by simon.proctor (Vicar) on Mar 24, 2002 at 20:57 UTC | |
by o(o_o)o (Scribe) on Mar 24, 2002 at 21:44 UTC | |
by lachoy (Parson) on May 26, 2002 at 18:30 UTC | |
|
Re: Making a program for a gui future
by RMGir (Prior) on Mar 24, 2002 at 19:47 UTC | |
|
Term::ReadLine
by Anonymous Monk on Mar 24, 2002 at 18:18 UTC | |
|
Re: Making a program for a gui future
by blogan (Monk) on Mar 24, 2002 at 22:54 UTC |