MCPcopy Index your code
hub / github.com/RustPython/RustPython / __write

Method __write

Lib/_pyrepl/windows_console.py:294–302  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

292 self.__write("\x1b[?12l")
293
294 def __write(self, text: str) -> None:
295 if "\x1a" in text:
296 text = ''.join(["^Z" if x == '\x1a' else x for x in text])
297
298 if self.out is not None:
299 self.out.write(text.encode(self.encoding, "replace"))
300 self.out.flush()
301 else:
302 os.write(self.output_fd, text.encode(self.encoding, "replace"))
303
304 @property
305 def screen_xy(self) -> tuple[int, int]:

Callers 11

refreshMethod · 0.95
__write_changed_lineMethod · 0.95
_hide_cursorMethod · 0.95
_show_cursorMethod · 0.95
_enable_blinkingMethod · 0.95
_disable_blinkingMethod · 0.95
_erase_to_endMethod · 0.95
_move_relativeMethod · 0.95
beepMethod · 0.95
clearMethod · 0.95
finishMethod · 0.95

Calls 4

joinMethod · 0.45
writeMethod · 0.45
encodeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected