@classmethod
def inch(cls, x=None, y=None):
    """
        Return the character and attributes of the character at the specified
        position in the window or cursor.

        :param x: optional x value
        :param y: optional y value
        :return: (character, attributes)
        """
    x, y = cls._fix_xy(x, y)
    ret = cls.WINDOW.inch(y, x)
    char = 15 & ret
    attrs = 240 & ret
    return char, attrs
