class_docstr: This is the main class interface for Pexpect. Use this class to start
  and control child applications. 
class_docstr_tok: ["This","is","the","main","class","interface","for","Pexpect",".","Use","this","class","to","start","and","control","child","applications","."]
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==-1 then this method will use the value in self.timeout.
  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==-1","then","this","method","will","use","the","value","in","self.timeout",".","If","timeout==None","then","this","method","to","block","until","ECHO","flag","is","False","."]
code: def waitnoecho(self, timeout=-1):
      """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.
      """
  
      if timeout == -1:
          timeout = self.timeout
      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 os
  import sys
  import time
  import pty
  import tty
  import errno
  import signal
  from contextlib import contextmanager
  import ptyprocess
  from ptyprocess.ptyprocess import use_native_pty_fork
  from .exceptions import ExceptionPexpect, EOF, TIMEOUT
  from .spawnbase import SpawnBase
  from .utils import which, split_command_line, select_ignore_interrupts, poll_ignore_interrupts
label_desc: Use image node_id 7 for calling the spawn obj's underlying member method code with example usage: obj.waitnoecho(timeout) and returns: True, False