Skip to content

enableColors

enableColors(level?: 0 | 1 | 2 | 3): void

Sets the color support level for terminal output.

  • 0: disabled
  • 1: basic colors
  • 2: 256 colors
  • 3: true color (default)
zylog.enableColors(3);