mintty-0.1.4: A reliable way to detect the presence of a MinTTY console on Windows
Copyright(C) 2017 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityProvisional
PortabilityPortable
Safe HaskellSafe
LanguageHaskell2010

System.Console.MinTTY

Description

Exports functions that check if a process or handle is attached to a MinTTY console on Windows, such as Cygwin or MSYS. On non-Windows operating systems, the functions in this module will simply return False.

Synopsis

Documentation

isMinTTY :: IO Bool Source #

Returns True if the current process's standard error is attached to a MinTTY console (e.g., Cygwin or MSYS). Returns False otherwise.

isMinTTYHandle :: HANDLE -> IO Bool Source #

Returns True is the given handle is attached to a MinTTY console (e.g., Cygwin or MSYS). Returns False otherwise.

type HANDLE = Ptr () Source #