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

Method __move_y_cuu1_cud1

Lib/_pyrepl/unix_console.py:715–722  ·  view source on GitHub ↗
(self, y)

Source from the content-addressed store, hash-verified

713 self.__write_code(fmt, *args)
714
715 def __move_y_cuu1_cud1(self, y):
716 assert self._cud1 is not None
717 assert self._cuu1 is not None
718 dy = y - self.posxy[1]
719 if dy > 0:
720 self.__write_code(dy * self._cud1)
721 elif dy < 0:
722 self.__write_code((-dy) * self._cuu1)
723
724 def __move_y_cuu_cud(self, y):
725 dy = y - self.posxy[1]

Callers

nothing calls this directly

Calls 1

__write_codeMethod · 0.95

Tested by

no test coverage detected