Dying (Coloring)
Dying is a built-in module that provides shared ANSI color and style constants for LightVM diagnostics.
How Dying Works
Dying defines reusable string constants. VMError uses these constants to format diagnostics and internal backtraces. Callers determine how errors are handled and whether the process terminates.
- Shared Color Constants: Provides
RED,CYAN,GREEN,YELLOW,BLUE,MAGENTA,BRIGHT_GREEN, andDARK_GRAYfor callers to use in terminal output. - Text Styling: Provides
BOLDfor bold text andRESETto reset styling. Callers insert these sequences where needed.