Skip to main content

LOGO_MAX_COLS

Constant LOGO_MAX_COLS 

Source
pub const LOGO_MAX_COLS: usize = 45;
Expand description

Maximum width, in terminal columns, that a rendered logo may occupy.

Widened from 28 so that wide-aspect assets (the horizontal lockups — fedora.png is 384×108, i.e. 3.56:1 — plus arch/nixos/ubuntu/tux) get enough rows to stay legible: a logo is fitted inside this box preserving aspect, so a narrow box caps a wide image’s height long before LOGO_MAX_ROWS does. At 28 columns the Fedora logo collapsed to 4 rows of Chafa symbols and was unreadable.