Rounded box

rounded_box

Print text wrapped in a Unicode rounded box. Supports an optional title in the top border and custom width. Long lines are wrapped with fold. Literal \n in content is treated as a newline.

Arguments

  • $1 (string): Optional: -t TITLE to set a title in the top border
  • $2 (string): Optional: -w WIDTH to set the box width in columns (default: 80)
  • ... (string): Content to display inside the box

Exit codes

  • 0: Always

Output on stdout

  • Text enclosed in a rounded Unicode border box