Package Info

ghc-mintty


A reliable way to detect the presence of a MinTTY console on Windows


Unspecified

MinTTY is a Windows-specific terminal emulator for the widely used Cygwin and MSYS projects, which provide Unix-like environments for Windows. MinTTY consoles behave differently from native Windows consoles (such as 'cmd.exe' or PowerShell) in many ways, and in some cases, these differences make it necessary to treat MinTTY consoles differently in code.

The 'mintty' library provides a simple way to detect if your code in running in a MinTTY console on Windows. It exports 'isMinTTY', which does the right thing 90% of the time (by checking if standard error is attached to MinTTY), and it also exports 'isMinTTYHandle' for the other 10% of the time (when you want to check is some arbitrary handle is attached to MinTTY). As you might expect, both of these functions will simply return 'False' on any non-Windows operating system.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/mintty

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.1.3-bp156.3.3 info GA Release 2023-12-07 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • ghc-mintty
  • ghc-mintty-devel
0.1.3-bp155.2.13 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • ghc-mintty
  • ghc-mintty-devel
0.1.3-bp154.1.11 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • x86-64
  • ghc-mintty
  • ghc-mintty-devel
0.1.2-bp153.1.19 info GA Release 2021-04-08 15 SP3
  • AArch64
  • ppc64le
  • x86-64
  • ghc-mintty
  • ghc-mintty-devel
0.1.2-bp152.4.10 info GA Release 2020-06-16 15 SP2
  • AArch64
  • ppc64le
  • x86-64
  • ghc-mintty
  • ghc-mintty-devel
0.1.2-bp151.2.2 info GA Release 2019-07-17 15 SP1
  • ppc64le
  • s390x
  • x86-64
  • ghc-mintty
  • ghc-mintty-devel
0.1.2-bp151.1.12 info GA Release 2019-05-31 15 SP1
  • AArch64
  • ghc-mintty
  • ghc-mintty-devel
0.1.1-bp150.2.6 info GA Release 2018-07-31 15
  • ppc64le
  • ghc-mintty
  • ghc-mintty-devel
0.1.1-bp150.2.7 info GA Release 2018-07-30 15
  • AArch64
  • x86-64
  • ghc-mintty
  • ghc-mintty-devel