stack-2.15.1: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

System.Terminal

Description

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

Synopsis

Documentation

fixCodePage Source #

Arguments

:: HasTerm env 
=> Bool

modify code page?

-> Version

GHC version

-> RIO env a 
-> RIO env a 

Set the code page for this process as necessary. Only applies to Windows. See: https://github.com/commercialhaskell/stack/issues/738

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

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