40b0a744e9
Supports NetBSD, where libtinfo isn't available but libterminfo is. (cherry picked from commit 67d1d80f94107e26585d192d194295180cb9f73b)