"Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote
> Is it possible to make the utility like in vi, where the user keeps
> on
> entering the data and when he hits ':wq', the work is saved and the
> application exists.
YES BUT THE ACTUAL CODE TO READ KEYSTROKES AS
THEY ARE TYPED WILL BE VERY DIFFERENT
> I am trying to build a simple text editor which has a couple of options of
> editing, displaying and saving the file.
> Now what I want to do is to allow teh user to keep entering the text unless
> he pressed ':q'.
reading of and writing of a text file is one of the examples i added
to "Core Py
Is it possible to make the utility like in vi, where the user keeps on entering the data and when he hits ':wq', the work is saved and the application exists.
I guess the use of standard input file would be applicable???
Thanks.
Regrds,
Asrar
On 10/14/06, Alan Gauld <[EMAIL PROTECTED]> wrote
> I am trying to build a simple text editor which has a couple of
> options of
> editing, displaying and saving the file.
Are you using a GUI or console?
The solution is potentially quite different depending on the choice.
> Now what I want to do is to allow teh user to keep entering the text
>
Folks,
I am trying to build a simple text editor which has a couple of options of editing, displaying and saving the file.
Now what I want to do is to allow teh user to keep entering the text unless he pressed ':q'.
How can I add this functionality??
Thanks.
REgards,
Asrar
-- To HIM you sha