Formatting Text for Gopher The Easy Way With FMT

📆 2026-01-03 14:25

Gopher works best with lines no longer than 70 chars. Long lines can wrap badly and become hard to read in simple clients.

How I wrap text with FMT

Counting chars by hand is tedious - let tools do the work for you.

Install FMT

On Debian/Ubuntu:

Even though libfmt is a C++ library, most systems include the fmt command-line tool, perfect for quick formatting in Bash scripts.

Wrap a text file

Example: wrap text to 67 chars for Gopher:

Output: neat, readable text ready for Gopher menus or text files.

Benefits

Write freely, format once, and keep your Gopher content pleasant to read.

🚶 Back to my blog