HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulesafe-coloured-text-terminfo-0.3.0.0Haskell2010

Text.Colour.Capabilities.FromEnv

Synopsis

Try to detect how many colours the terminal can handle.

This is based on the colors capability of the terminfo detected based on the TERM environment variable. If the terminal can handle 8-bit colours and also has the COLORTERM environment variable set to 24bit or truecolor, then this function will return With24BitColours.