deleting the terminal prompt?
MackS
mackstevenson at hotmail.com
Sun May 15 21:01:18 EDT 2005
Thanks, Dennis, that solved it.
Cheers
Mack
Dennis Lee Bieber wrote:
> On 15 May 2005 16:32:57 -0700, "MackS" <mackstevenson at hotmail.com>
> declaimed the following in comp.lang.python:
>
>
> > while cmd != "":
> >
> > sys.stdout.write("prompt: ")
> > cmd = raw_input()
> >
> > # at this point it studies the contents of cmd and decides what
to
> > do next.
> >
> > However, if the user simply presses Tab followed by a backspace
s/he
> > effectively makes the prompt disappear. Is there a way to prevent
this
> > from happening?
> >
> What behavior does...
>
> while cmd != "":
> cmd = raw_input("prompt: ")
>
> ... give you?
>
> --
> > ============================================================== <
> > wlfraed at ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
> > wulfraed at dm.net | Bestiaria Support Staff <
> > ============================================================== <
> > Home Page: <http://www.dm.net/~wulfraed/> <
> > Overflow Page: <http://wlfraed.home.netcom.com/> <
More information about the Python-list
mailing list