stack-3.7.1: The Haskell Tool Stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

System.Terminal

Description

The module of this name differs as between Windows and non-Windows builds. This is the non-Windows version.

Synopsis

Documentation

getTerminalWidth :: IO (Maybe Int) Source #

If available, yields the width of the terminal.

hIsTerminalDeviceOrMinTTY :: MonadIO m => Handle -> m Bool Source #

hIsTerminaDevice does not recognise handles to mintty terminals as terminal devices, but isMinTTYHandle does.