System.Win32.MinTTY

Win32-2.5.4.1: A binding to part of the Win32 library

Copyright | (c) University of Glasgow 2006
License | BSD-style (see the file LICENSE)
Maintainer | Esa Ilari Vuokko <ei@vuokko.info>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

System.Win32.MinTTY (signature[?])

Description

A function to check if the current terminal uses MinTTY. Much of this code was originally authored by Phil Ruffwind and the git-for-windows project.

Synopsis

- isMinTTY :: IO Bool
- isMinTTYHandle :: HANDLE -> IO Bool

# 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.