Commits

Anonymous committed 8a9d224

fix setupterm

Comments (0)

Files changed (1)

lib_pypy/_curses.py

         term = ffi.NULL
     err = ffi.new("int *")
     if lib.setupterm(term, fd, err) == lib.ERR:
+        err = err[0]
         if err == 0:
             raise error("setupterm: could not find terminal")
         elif err == -1: