Thanks, Dennis, that solved it. Cheers
Mack Dennis Lee Bieber wrote: > On 15 May 2005 16:32:57 -0700, "MackS" <[EMAIL PROTECTED]> > 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? > > -- > > ============================================================== < > > [EMAIL PROTECTED] | Wulfraed Dennis Lee Bieber KD6MOG < > > [EMAIL PROTECTED] | Bestiaria Support Staff < > > ============================================================== < > > Home Page: <http://www.dm.net/~wulfraed/> < > > Overflow Page: <http://wlfraed.home.netcom.com/> < -- http://mail.python.org/mailman/listinfo/python-list