MCPcopy Index your code
hub / github.com/python/cpython / __move_y_cuu1_cud1

Method __move_y_cuu1_cud1

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

Source from the content-addressed store, hash-verified

732 self.__write_code(fmt, *args)
733
734 def __move_y_cuu1_cud1(self, y):
735 assert self._cud1 is not None
736 assert self._cuu1 is not None
737 dy = y - self.posxy[1]
738 if dy > 0:
739 self.__write_code(dy * self._cud1)
740 elif dy < 0:
741 self.__write_code((-dy) * self._cuu1)
742
743 def __move_y_cuu_cud(self, y):
744 dy = y - self.posxy[1]

Callers

nothing calls this directly

Calls 1

__write_codeMethod · 0.95

Tested by

no test coverage detected