Skip to content

v1.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Nov 04:05
· 33 commits to master since this release

Three new features in this release, plus an unknown number of new bugs:

  1. When the NO_COLOR env variable is set, phetch won't use colors when rendering menus. See https://no-color.org/ for more information.

  2. 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.

  3. 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 adding wrap NUM to your phetch.conf. You can disable it with wrap 0.


You may have run into long lines that don't break at the margins, making the page hard to scroll and read:

not wrapped

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:

wrapped

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
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:

weird

Enjoy!