vty-5.4.0: A simple terminal UI library

Safe Haskell | None
Language | Haskell2010

Graphics.Vty.Output.TerminfoBased

Description

Terminfo based terminal handling.

The color handling assumes tektronix like. No HP support provided. If the terminal is not one I have easy access to then color support is entirely based of the docs. Probably with some assumptions mixed in.

Copyright Corey O'Connor (coreyoconnor@gmail.com)

Synopsis

- reserveTerminal :: (Applicative m, MonadIO m) => String -> Fd -> m Output

# Documentation

reserveTerminal :: (Applicative m, MonadIO m) => String -> Fd -> m Output Source

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: - - * determine the character encoding supported by the terminal. Should this be taken from the LANG - environment variable? - - * Provide independent string capabilities for all display attributes. - - todo: Some display attributes like underline and bold have independent string capabilities that - should be used instead of the generic "sgr" string capability.