pub fn print_centred( buf: &mut GlyphBuffer, y: i32, text: &str, fg: Rgb, bg: Rgb, )
Prints text centred on row y. A text wider than buf starts at column 0, cut to the buffer’s width.
text
y
buf
cut