I’ve been working on adding color support to the Dialog debugger, a command-line program that only supports very basic styling via ANSI escape sequences (no curses or anything fancy like that). The Dialog compiler already recognizes the eight basic color names (“black”, “red”, “green”, “yellow”, “blue”, “magenta”, “cyan”, “white”) for Z-machine purposes, and those are also the eight basic colors that ANSI escape sequences support, to that was the obvious place to start.
But, ANSI[1] actually supports sixteen basic colors: “dark” versions of those eight, with codes [3Xm and [4Xm, and “bright” versions of those eight, with codes [9Xm and [10Xm.
Since the goal is compatibility with the Z-machine implementation, I want to stick to those eight color names, rather than adding eight more. So—are the [3Xm or the [9Xm colors better to use for this?
Technically not the ANSI standard itself, but an extension implemented by most terminals. ↩︎



