This reverts commit ea207d9177. Does not work with libraries depending on tgetent being in libncurses(w).
ea207d9177