README

moonbit-community/tty/color does not have a README file

#
BasicColor

pub(all) enum BasicColor {
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
BrightBlack
BrightRed
BrightGreen
BrightYellow
BrightBlue
BrightMagenta
BrightCyan
BrightWhite
} derive(Eq,
Debug
)

ANSI basic and bright colors.

#
Color

pub(all) enum Color {
Default
Basic(BasicColor)
Indexed(Int)
Rgb(Int, Int, Int)
} derive(Eq,
Debug
)

Terminal color value for foreground and background style sequences.

#
Rgb16

pub(all) struct Rgb16 {
red : Int
green : Int
blue : Int
} derive(Eq,
Debug
)

16-bit RGB color value.

Components are expected to be in the range 0..65535.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io