v1.1.0
Three new features in this release, plus an unknown number of new bugs:
-
When the
NO_COLOR
env variable is set, phetch won't use colors when rendering menus. See https://no-color.org/ for more information. -
CP437 encoding support! You can toggle it on or off using
ctrl-e
(for encoding) when viewing a Gopher text document, or using the--encoding
command line flag. See https://en.wikipedia.org/wiki/Code_page_437.Huge thanks to Kjell for suggesting this feature and providing some great test data!
NOTE: This only works for text documents since there's no
TAB
character in CP437. -
phetch now supports a primitive form of wrapping long lines when rendering Gopher text documents. It won't reflow the text, but it will make some phlogs and other documents slightly more readable. Enable it with
--wrap NUM
or by addingwrap NUM
to yourphetch.conf
. You can disable it withwrap 0
.
You may have run into long lines that don't break at the margins, making the page hard to scroll and read:
Now, by either passing --wrap NUM
or adding wrap NUM
to your phetch.conf
file, phetch will attempt to wrap long lines at the nearest punctation or space:
This is really useful if you want to browse, say, a directory of Markdown files over Gopher. Modern Markdown is often written with the assumption that the client will do the wrapping, so it can end up looking pretty messy in an ananchronistic client like phetch. Reading those files is now a bit easier:
not wrapped | wrapped |
---|---|
This also works nicely on native Gopher content: phlog entries sometimes have long URLs in their footnotes, and that could screw up phetch's margin calculations.
Note that this doesn't do any reflow of text, so documents with long lines will still look a bit wonky, as you can see above. Some lines will be too short. But it's a lot more usable, so we'll take it!
PS: You can use smaller values to get weird with it:
Enjoy!