add terminfo to haskell env