parameters: (self, timeout=None)
docstring: 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==None then this method to block until ECHO flag is False.
docstring_summary: 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::
docstring_tokens: 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 ::
function: def waitnoecho(self, timeout=None):
          '''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==None then this method to block until ECHO flag is False.
          '''
  
          if timeout is not None:
              end_time = time.time() + timeout
          while True:
              if not self.getecho():
                  return True
              if timeout < 0 and timeout is not None:
                  return False
              if timeout is not None:
                  timeout = end_time - time.time()
              time.sleep(0.1)
function_tokens: def waitnoecho ( self , timeout = None ) : if timeout is not None : end_time = time . time ( ) + timeout while True : if not self . getecho ( ) : return True if timeout < 0 and timeout is not None : return False if timeout is not None : timeout = end_time - time . time ( ) time . sleep ( 0.1 )