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

Method __move_x_cub_cuf

Lib/_pyrepl/unix_console.py:744–749  ·  view source on GitHub ↗
(self, x: int)

Source from the content-addressed store, hash-verified

742 self.__write_code(self._cub1 * (-dx))
743
744 def __move_x_cub_cuf(self, x: int) -> None:
745 dx = x - self.posxy[0]
746 if dx > 0:
747 self.__write_code(self._cuf, dx)
748 elif dx < 0:
749 self.__write_code(self._cub, -dx)
750
751 def __move_short(self, x, y):
752 self.__move_x(x)

Callers

nothing calls this directly

Calls 1

__write_codeMethod · 0.95

Tested by

no test coverage detected