def _print_at(self, text, x, y):
            """
            Print string at the required location.

            :param text: The text string to print.
            :param x: The x coordinate
            :param y: The Y coordinate
            """
            # Move the cursor if necessary
            msg = ""
            if x != self._x or y != self._y:
                msg += curses.tparm(self._move_y_x, y, x).decode("utf-8")

            msg += text

            # Print the text at the required location and update the current
            # position.  Screen resize can throw IOErrors.  These can be safely
            # ignored as the screen will be shortly reset anyway.
            try:
                sys.stdout.write(msg)
            except __HOLE__:
                pass
dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/screen.py/_CursesScreen._print_at