| Copyright | (c) University of Glasgow 2006 |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Esa Ilari Vuokko <[email protected]> |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
A function to check if the current terminal uses an old version of MinTTY that emulates a TTY. Note, however, that this does not check for more recent versions of MinTTY that use the native Windows console PTY directly. The old approach (where MinTTY emulates a TTY) sometimes requires different approaches to handling keyboard inputs.
Much of this code was originally authored by Phil Ruffwind and the git-for-windows project.
Returns True if the current process's standard error is attached to an emulated MinTTY console (e.g., Cygwin or MSYS that use an old version of MinTTY). Returns False otherwise.
isMinTTYHandle :: HANDLE -> IO Bool Source
Returns True is the given handle is attached to an emulated MinTTY console (e.g., Cygwin or MSYS that use an old version of MinTTY). Returns False otherwise.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/Win32-2.14.1.0-d391/System-Win32-MinTTY.html