

@_argspec(0, 1, 2)
def instr(self, y, x, n=1023):
    n = min(n, 1023)
    buf = ffi.new('char[1024]')
    if (y is None):
        code = lib.winnstr(self._win, buf, n)
    else:
        code = lib.mvwinnstr(self._win, y, x, n, n)
    if (code == lib.ERR):
        return ''
    return ffi.string(buf)

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cffi-1.5.2/demo/_curses.py Window.instr/VarMisuse@89/103 `buf`->`n`