Commit 2ab3d2e665

2ab3d2e66586be63b3349cef4fa63fab91f65657

parent: b610d1cb03

Verified · cmc

cmc <hello@cleberg.net> · 2026-08-20 17:06 UTC

fix: verbiage

Layout: unified · split

content/blog/2026-08-20-nfogen.org +4 −4
@@ -270,10 +270,10 @@ rows and columns.
270270** Width
271271
272272The first issue I ran into was determining the width to use. I settled on 79
273characters, with border characters at both ends, because 80-column terminals,
274minus one so the line doesn't wrap when a terminal auto-wraps at exactly 80.
275This means that my script needs to perform some math to calculate wrapping,
276padding, and centering of text throughout.
273characters, border characters included, because terminals were 80 columns wide
274and a line that hits exactly 80 wraps on its own. This means that my script
275needs to perform some math to calculate wrapping, padding, and centering of text
276throughout.
277277
278278The math is relatively simple because CP437 is single-byte and single-width,
279279which means I can write functions that depend on that one-to-one correlation