1. squeaky
  2. pypy

Commits

Paweł Piotr Przeradowski  committed 8a9d224

fix setupterm

  • Participants
  • Parent commits 1f5c355
  • Branches curses_fixes

Comments (0)

Files changed (1)

File lib_pypy/_curses.py

View file
  • Ignore whitespace
         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: