

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

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