Revert "Fixes to curses on HP-UX 11v1"

This reverts commit 31a4033f96e6b3c1d6f4aadc331620855d2deebd.