HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulevty-unix-0.4.0.0Haskell2010

Graphics.Vty.Platform.Unix.Output

This module provides a function to build an Output for Unix terminal devices.

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

  • 1 value
  • Packagevty-unix-0.4.0.0
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceOutput.hs

Returns an Output for the terminal specified in UnixSettings.

The specific output implementation chosen is based on the TERM environment variable and ultimately uses Graphics.Vty.Platform.Unix.Output.XTermColor for terminals that look xterm-like or Graphics.Vty.Platform.Unix.Output.TerminfoBased as a fallback otherwise.

  • If TERM starts with xterm, screen, rxvt, or tmux, this will the xterm-based implementation.

  • Otherwise this will use the TerminfoBased implementation.