Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Terminfo-based terminal output implementation.
This module is exposed for testing purposes only; applications should never need to import this directly.
Documentation
reserveTerminal :: String -> Fd -> ColorMode -> IO Output Source #
Constructs an output driver that uses terminfo for all control codes. While this should provide the most compatible terminal, terminfo does not support some features that would increase efficiency and improve compatibility:
- determining the character encoding supported by the terminal. Should this be taken from the LANG environment variable?
- Providing independent string capabilities for all display attributes.