module

Krikri::OutputBanner

ansible-playbook's Display.banner shape: a blank line, then <msg> followed by * padding out to the display width (79 when stdout is not a tty, tty_width - 1 when it is, minimum 3 stars). Banners are never colorized, even on a tty (Ansible's default callback passes no color to banner).

Constants

TIOCGWINSZ = 21523_u64

Class methods

columns

Ansible's max(79, tty_size - 1): a tty reports its ioctl width; any non-tty stdout (pipe, file) reports 0 and lands on the 79 floor.

Source
display_width(msg : String) : Int32

Ansible pads banners by DISPLAY width, not codepoint count - its _textlen treats each East Asian Wide/Fullwidth character as two columns (live-verified vs 2.19.11: TASK [Téλ-日本 ...] pads two stars shorter than a codepoint count would give). Mirrors unicodedata.east_asian_width(c) in ("W", "F") for the ranges that matter; every other character counts one column.

Source
stars(msg : String) : String
Source