blessed-components - v1.20.0
    Preparing search index...

    Function renderKbd

    • Renders one or more keyboard shortcuts as safe one-line terminal text.

      This function is framework-independent. Import it from blessed-components/kbd to keep Blessed outside the module graph.

      Parameters

      Returns string

      Plain text without ANSI sequences or Blessed tags.

      RangeError Thrown when a key, separator, or shortcut is empty or multiline, or when configured text dimensions are invalid.