Copyright | (C) 2017 Ryan Scott |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Ryan Scott |
Stability | Provisional |
Portability | Portable |
Safe Haskell | Safe |
Language | Haskell2010 |
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
- isMinTTY :: IO Bool
- isMinTTYHandle :: HANDLE -> IO Bool
- type HANDLE = Ptr ()
Documentation
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.