def _print_at(self, text, x, y):
            # 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 IOError:
                pass
Print string at the required location.
dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/screen.py/_CursesScreen._print_at