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

Graphics.Vty.Platform.Windows.Output.TerminfoBased

Description

Provides functions for configuring the terminal for VT processing, and to change the window size

Synopsis

Documentation

reserveTerminal :: String -> Handle -> 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.

setWindowSize :: Handle -> (Int, Int) -> IO () Source #

Resize the console window to the specified size. Throws error on failure.