Console Style Settings

Experimental New in 0.9.15

The appearance of terminal output can be customized with a style sheet defined in a top-level console: section. Available via enkaidu.yml only (not profile configuration).

  • console: Top-level section containing the style sheet
    • style_sheet: Defines the different element types and their styles
      • <ELEMENT_NAME>: an element to style, e.g. query_prefix_by_user
        • fg: Foreground color
        • bg: (optional) Background color
        • format: Array of one or more of italic, bold, underline, strikethrough, double_underline

Color values can be one of the following:

  • Predefined ANSI colors: black, red, green, yellow, blue, magenta, cyan, light_gray, dark_gray, light_yellow, light_blue, light_magenta, light_cyan, light_red, white
  • An integer value from the ANSI 256-color palette (e.g. 124)
  • An integer array with R, G, B values (e.g. [112, 234, 43]) if your terminal supports 24-bit colors

Example

console:
  style_sheet:
    query_prefix_by_user:
      fg: yellow
      bg: darkgray
      format: [italic]