try using ghc provided terminfo again