def waitnoecho (self, timeout=-<NUM_LIT:1>):
if timeout == -<NUM_LIT:1>:<EOL><INDENT>timeout = self.timeout<EOL><DEDENT>if timeout is not None:<EOL><INDENT>end_time = time.time() + timeout<EOL><DEDENT>while True:<EOL><INDENT>if not self.getecho():<EOL><INDENT>return True<EOL><DEDENT>if timeout < <NUM_LIT:0> and timeout is not None:<EOL><INDENT>return False<EOL><DEDENT>if timeout is not None:<EOL><INDENT>timeout = end_time - time.time()<EOL><DEDENT>time.sleep(<NUM_LIT:0.1>)<EOL><DEDENT>
This waits until the terminal ECHO flag is set False. This returns
        True if the echo mode is off. This returns False if the ECHO flag was
        not set False before the timeout. This can be used to detect when the
        child is waiting for a password. Usually a child application will turn
        off echo mode when it is waiting for the user to enter a password. For
        example, instead of expecting the "password:" prompt you can wait for
        the child to set ECHO off::

            p = pexpect.spawn ('ssh user@example.com')
            p.waitnoecho()
            p.sendline(mypassword)

        If timeout==-1 then this method will use the value in self.timeout.
        If timeout==None then this method to block until ECHO flag is False.