vty-windows-0.2.0.2: Windows backend for Vty
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Vty.Platform.Windows.Output

Description

This module provides a function to build an Output for Windows terminals.

This module is exposed for testing purposes only; applications should never need to import this directly.

Synopsis

Documentation

buildOutput :: VtyUserConfig -> WindowsSettings -> IO Output Source #

Returns an Output for the terminal specified in WindowsSettings.

The specific Output implementation used is hidden from the API user. All terminal implementations are assumed to perform more, or less, the same. Currently, all implementations use terminfo for at least some terminal specific information.

If a terminal implementation is developed for a terminal without terminfo support then Vty should work as expected on that terminal.

Selection of a terminal is done as follows:

  • If TERM starts with "xterm", "screen" or "tmux", use XTermColor.
  • otherwise use the TerminfoBased driver.