@classmethod
def instr(cls, x=None, y=None, n=None):
    """
        Return a string at cursor or specified position.
        If n is specified, returns at most n characters.

        :param x: optional x value
        :param y: optional y value
        :param n: optional max length of string
        :return: string at position
        """
    x, y = cls._fix_xy(x, y)
    if n is None:
        return cls.WINDOW.instr(y, x)
    else:
        return cls.WINDOW.instr(y, x, n)
