def isonscreen(self, x, y):
        return x >= 0 and y >= 0 and x < self.width and y < self.height
Returns True if the given xy cell coordinates are on the PygcurseSurface object, otherwise False.
dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/PygcurseSurface.isonscreen