mintty
Version 0.1.4 revision 0 uploaded by ryanglscott.
Package meta
- Synopsis
- A reliable way to detect the presence of a MinTTY console on Windows
- Description
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 exportsisMinTTY
, which does the right thing 90% of the time (by checking if standard error is attached to MinTTY), and it also exportsisMinTTYHandle
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 returnFalse
on any non-Windows operating system.- Author
- Ryan Scott
- Bug reports
- https://github.com/RyanGlScott/mintty/issues
- Category
- System
- Copyright
- (C) 2017 Ryan Scott
- Homepage
- https://github.com/RyanGlScott/mintty
- Maintainer
- Ryan Scott <ryan.gl.scott@gmail.com>
- Package URL
- n/a
- Stability
- Provisional