MCPcopy Create free account
hub / github.com/aitjcize/Overlord / _FeedInput

Method _FeedInput

py/ovl.py:693–707  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

691 pass
692
693 def _FeedInput(self):
694 try:
695 while True:
696 rd, unused_w, unused_x = select.select([sys.stdin], [], [], 0.5)
697 if self._stop.is_set():
698 break
699
700 if sys.stdin in rd:
701 data = sys.stdin.buffer.read()
702 if not data:
703 self.send(json.dumps({'type': 'stdin_close'}))
704 break
705 self.send(data, binary=True)
706 except (KeyboardInterrupt, RuntimeError):
707 pass
708
709 def opened(self):
710 self._input_thread.start()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected