stack-3.9.1: A program for developing Haskell projects
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2024

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.