MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / _write

Method _write

switchyard/server/shell_tui.py:147–149  ·  view source on GitHub ↗
(self, data: bytes)

Source from the content-addressed store, hash-verified

145 return self._footer_height_fn()
146
147 def _write(self, data: bytes) -> None:
148 with self._out_lock:
149 _writeall(sys.stdout.fileno(), data)
150
151 def _apply_scroll_region(self, shell_rows: int) -> None:
152 self._write(CSI + f"1;{shell_rows}r".encode() + CSI + b"1;1H")

Callers 3

_apply_scroll_regionMethod · 0.95
_draw_footerMethod · 0.95
runMethod · 0.95

Calls 1

_writeallFunction · 0.85

Tested by

no test coverage detected