class_docstr: This class represents a process running in a pseudoterminal.
  
  The main constructor is the :meth:`spawn` classmethod.
docstr: 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.
docstr_tok: ["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","."]
code: 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)
  
imports: import codecs
  import errno
  import fcntl
  import io
  import os
  import pty
  import resource
  import signal
  import struct
  import sys
  import termios
  import time
  from pty import STDIN_FILENO, CHILD
  from .util import which, PtyProcessError
label_desc: Use image node_id 11 for calling the PtyProcess obj's underlying member method code with example usage: obj.waitnoecho(timeout) and returns: True, False