Sign in

    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.

    BasicColor::equal

    fn BasicColor::equal(BasicColor, BasicColor) -> Bool

    BasicColor::not_equal

    fn BasicColor::not_equal(x : BasicColor, y : BasicColor) -> Bool

    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.

    Color::equal

    fn Color::equal(Color, Color) -> Bool

    Color::not_equal

    fn Color::not_equal(x : Color, y : Color) -> Bool

    Color::to_repr

    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.

    Rgb16::equal

    fn Rgb16::equal(Rgb16, Rgb16) -> Bool

    Rgb16::not_equal

    fn Rgb16::not_equal(x : Rgb16, y : Rgb16) -> Bool

    Rgb16::to_repr

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io