(self, args)
return self._values.new_integer().from_int(result)
SCREEN: get char or attribute at a location.
SCREEN: get char or attribute at a location.
SCREEN : get char or attribute at a location .
def screen_fn_(self, args):
        """SCREEN: get char or attribute at a location."""
        row = values.to_integer(next(args))
        col = values.to_integer(next(args))
        want_attr = next(args)
        if want_attr is not None:
            want_attr = values.to_integer(want_attr)
            want_attr = want_attr.to_int()
            error.range_check(0, 255, want_attr)
        row, col = row.to_int(), col.to_int()
        error.range_check(0, self.mode.height, row)
        error.range_check(0, self.mode.width, col)
        error.throw_if(row == 0 and col == 0)
        list(args)
        row = row or 1
        col = col or 1
        if self.scroll_area.active:
            error.range_check(self.scroll_area.top, self.scroll_area.bottom, row)
        if want_attr:
            if not self.mode.is_text_mode:
                result = 0
            else:
                result = self._apage.get_attr(row, col)
        else:
            result = self._apage.get_byte(row, col)
        return self._values.new_integer().from_int(result)
def screen_fn_ ( self , args ) : row = values . to_integer ( next ( args ) ) col = values . to_integer ( next ( args ) ) want_attr = next ( args ) if want_attr is not None : want_attr = values . to_integer ( want_attr ) want_attr = want_attr . to_int ( ) error . range_check ( 0 , 255 , want_attr ) row , col = row . to_int ( ) , col . to_int ( ) error . range_check ( 0 , self . mode . height , row ) error . range_check ( 0 , self . mode . width , col ) error . throw_if ( row == 0 and col == 0 ) list ( args ) row = row or 1 col = col or 1 if self . scroll_area . active : error . range_check ( self . scroll_area . top , self . scroll_area . bottom , row ) if want_attr : if not self . mode . is_text_mode : result = 0 else : result = self . _apage . get_attr ( row , col ) else : result = self . _apage . get_byte ( row , col ) return self . _values . new_integer ( ) . from_int ( result )