rich.rule

class rich.rule.Rule(title: Union[str, rich.text.Text] = '', *, characters: str = '─', style: Union[str, rich.style.Style] = 'rule.line', end: str = '\n')[source]

A console renderable to draw a horizontal rule (line).

Parameters
  • title (Union[str, Text], optional) – Text to render in the rule. Defaults to “”.

  • characters (str, optional) – Character(s) used to draw the line. Defaults to “─”.

  • style (StyleType, optional) – Style of Rule. Defaults to “rule.line”.

  • end (str, optional) – Character at end of Rule. defaults to “n”