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?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i would slit my wrists for you