Module
Choku.Common
- Package
- purescript-choku
- Repository
- m15a/purescript-choku
The Choku
type and its common interface.
#ColorSupportLevel Source
data ColorSupportLevel
Level of color support.
| Level | Int | Description |
| ---------------- | --- | ------------------------------------- |
| `HasNoColors` | 0 | All colors disabled |
| `HasBasicColors` | 1 | Basic color support (16 colors) |
| `Has256Colors` | 2 | 256 color support |
| `Has16mColors` | 3 | Truecolor support (16 million colors) |
See also https://github.com/chalk/chalk#chalklevel.
Constructors
Instances
#level Source
level :: Choku -> ColorSupportLevel
Return the color support level of the given chalk.
#mkChoku Source
mkChoku :: ColorSupportLevel -> Choku
Create a new chalk instance with the specified level of color support.