

@_argspec(1, 1, 2)
def chgat(self, y, x, num, attr=None):
    if (attr is None):
        attr = num
        num = (- 1)
    color = ((attr >> 8) & 255)
    attr = (attr - (color << 8))
    if (y is not None):
        code = lib.mvwchgat(self._win, y, x, num, attr, color, ffi.NULL)
        lib.touchline(self._win, y, 1)
    else:
        (yy, _) = self.getyx()
        code = lib.wchgat(self._win, num, attr, color, ffi.NULL)
        lib.touchline(self._win, yy, 1)
    return _check_ERR(code, 'chgat')

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cffi-1.5.2/demo/_curses.py Window.chgat/original