parameters: (self)
docstring: Interaction function, emulates a very dumb telnet client.
docstring_summary: Interaction function, emulates a very dumb telnet client.
docstring_tokens: Interaction function emulates a very dumb telnet client .
function: def interact(self):
          """Interaction function, emulates a very dumb telnet client."""
          if sys.platform == "win32":
              self.mt_interact()
              return
          while 1:
              rfd, wfd, xfd = select.select([self, sys.stdin], [], [])
              if self in rfd:
                  try:
                      text = self.read_eager()
                  except EOFError:
                      print '*** Connection closed by remote host ***'
                      break
                  if text:
                      sys.stdout.write(text)
                      sys.stdout.flush()
              if sys.stdin in rfd:
                  line = sys.stdin.readline()
                  if not line:
                      break
                  self.write(line)
function_tokens: def interact ( self ) : if sys . platform == "win32" : self . mt_interact ( ) return while 1 : rfd , wfd , xfd = select . select ( [ self , sys . stdin ] , [ ] , [ ] ) if self in rfd : try : text = self . read_eager ( ) except EOFError : print '*** Connection closed by remote host ***' break if text : sys . stdout . write ( text ) sys . stdout . flush ( ) if sys . stdin in rfd : line = sys . stdin . readline ( ) if not line : break self . write ( line )