- Add
hyperlink
,hyperlinkWithId
andhyperlinkWithParams
, and support for clickable hyperlinks.
- On Windows, fix compatability with the Windows I/O Manager (WinIO) when
GHC >= 9.0.1 but
Win32
< 2.9.0.0. - Improvements to Haddock documentation.
- On Windows, fix compatability with the Windows I/O Manager (WinIO) introduced
in GHC 9.0.1, by incorporating changes made in package
Win32-2.13.2.0
in that regard. - Improvements to Haddock documentation.
- Remove deprecated
getCursorPosition0
. (UsegetCursorPosition
instead.) - On Unix-like operating systems, the temporary turning off of echoing is moved
from
getReportedCursorPosition
tohGetCursorPositon
. - On Unix-like operating systems, fix a bug in
getCursorPosition
andhGetCursorPosition
, where the console input stream was was not always clear before the cursor position was emitted into it.
- Add
getCursorPosition
as a synonym ofgetCursorPosition0
and deprecate the latter.
hGetTerminalSize
now assumes a terminal is no bigger than 9,999 by 9,999 (previously, no bigger than 999 by 999).- On Windows, fix a bug where emulated cursor movement functions differed from Windows 10 (movement bounded by the current viewport).
- Add
hGetCursorPosition
andhGetTerminalSize
. - On Unix-like operating systems, fix a bug where
getReportedCursorPosition
could block indefinitely if no information was forthcoming on the console input stream. - Improvements to Haddock documentation.
- Add support for setting the default color with new
SetDefaultColor
constructor of theSGR
type. getTerminalSize
now flushes thestdout
channel, to ensure the cursor position is unaffected.
- Flag modules with GHC's 'Safe Haskell' language extensions (from GHC 7.2.1).
- Improvements and corrections to Haddock documentation.
- Add support for 256-color palettes with new
SetPaletteColor
constructor of theSGR
type, andxterm6LevelRGB
,xterm24LevelGray
andxtermSystem
. - Remove deprecated
getCursorPosition
. (UsegetCursorPosition0
instead.) - Add
hSupportsANSIColor
. - Add
getTerminalSize
. - Improvements to Haddock documentation.
- Add
getCursorPosition0
and deprecategetCursorPosition
. Any position provided by the latter is 1-based. Any position provided by the former is 0-based, consistent withsetCursorColumn
andsetCursorPosition
. - Improvements to Haddock documentation in respect of 0-based and 1-based cursor positions.
- Add
hSupportsANSIWithoutEmulation
. On Windows 10, if the handle is identified as connected to a native terminal ('Command Prompt' or 'PowerShell'), the processing of 'ANSI' control characters will be enabled.
- On Windows,
hSupportsANSI
now recognises if the handle is connected to a 'mintty' terminal. - Drop support for GHC versions before GHC 7.0.1 (released November 2010)
- On Windows, try to enable ANSI on ConHost terminals even if a TERM environment variable exits (such as with the Hyper 2 terminal)
- Minor improvements to Haddock documentation
- Improve README and Haddock documentation
- On Windows, fix compatability with earlier GHC versions
- Drop support for GHC versions before 6.12.1 (released December 2009)
- On Windows, if the standard output channel is valid but not a ConHost terminal, assume it is ANSI-enabled rather than failing
- On Windows, output the improved error message to the standard error channel rather than the standard output channel
- Make the fields of
SGR
strict - Make compatible with GHC 8.2.2
- Improve the error message on Windows when not ANSI-capable or ConHost
- Recognise Appveyor build environment as ANSI-enabled
getReportedCursorPosition
: don't let the cursor reporting code be echo'd
- Allow saving, restoring, and querying the current cursor position
- Fix a couple of issues with the Reset emulation on Windows
Add 24-bit RGB color support
Fix Windows + ghc 7.8 compatibility
- Add ANSI support for Windows
- Add compatibility with Win32-2.5.0.0 and above
Add an example to the haddocks
Fix a GHC 7.10 warning
Restore compatibility with GHC 7.4 and older
- Add
hSupportsANSI
- Drop support for
base < 4
Fix to build with GHC 7.8 on Windows
BoldIntensity
no longer changes background color on WindowssetSGR []
was not equivalent tosetSGR [Reset]
on Windows, even though it should be according to the documentation. This is now fixed.