text-ansi: Text styling for ANSI terminals.

[ bsd3, data, library ] [ Propose Tags ]

Text styling for ANSI terminals using SGR codes, as defined by the ECMA-48 standard.

Supports foreground/background color, bold/faint intensity, italic, single/double underline, strikethrough, frame, encircle, and overline escape sequences. Some styles may not work on your terminal.

Also features terminal detection, so redirecting styled output to a file will automatically strip the ANSI escape sequences.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1.0,,, 0.1.1, 0.2.0, 0.2.1,, 0.3.0,
Change log CHANGELOG.md
Dependencies base (>=4.16 && <4.20), text (>=1.0 && <2.2), text-builder-linear (>=0.1.1 && <0.2) [details]
License BSD-3-Clause
Copyright (c) 2018-2023 Mitchell Rosen, Travis Staton
Author Mitchell Rosen, Travis Staton
Maintainer Mitchell Rosen <mitchellwrosen@gmail.com>, Travis Staton <hello@travisstaton.com>
Category Data
Home page https://github.com/awkward-squad/text-ansi
Bug tracker https://github.com/awkward-squad/text-ansi/issues
Source repo head: git clone git://github.com/awkward-squad/text-ansi.git
Uploaded by mitchellwrosen at 2023-10-12T16:00:38Z
Distributions Arch:, Fedora:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Reverse Dependencies 4 direct, 7 indirect [details]
Downloads 3286 total (95 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-10-12 [all 1 reports]

Readme for text-ansi-

[back to package description]

GitHub CI Hackage Stackage LTS Stackage Nightly Dependencies