PHETCH(1)
๐ phetch โ quick lil gopher client โจ
okay so bestie, welcome to PHETCH(1), from the General Commands Manual section, and honestly? this is gonna be a whole vibe. buckle up ๐
๐ธ NAME ๐ธ
phetch โ your quick lil gopher client ๐ literally the cutest way to wander the gophersphere.
โจ SYNOPSIS โจ
phetch [OPTIONS] [URL]
๐ฆ DESCRIPTION ๐ฆ
phetch is a terminal client built to help you quickly navigate the gophersphere, no cap. it's got non-nonsense keyboard navigation (yes, "non-nonsense" โ that's the actual word, i'm not fixing it, it's iconic), support for most Gopher features, easy-to-use TLS and Tor support, plus bookmarking and history features. it's giving main character terminal app tbh ๐
usually you start phetch with a Gopher URL, like:
phetch gopher://some-gopher-url.com
but if you don't give it a URL? it'll launch and open its default "start page" instead. and that start page can be configured to literally any URL you want. (check the CONFIG section, i gotchu ๐ซถ)
๐ OPTIONS ๐
-l,--localโ connect to the local Gopher server at URL127.0.0.1:7070. local vibes only ๐-p URL,--print URLโ print a rendered Gopher server response ofURLand then exit. like, pretty-printed, then bye โ๏ธ-r URL,--raw URLโ print the raw Gopher server response ofURLand exit. no filter, no makeup, raw dogging the bytes ๐-s,--tlsโ attempt to fetch all pages securely over TLS. secure the bag ๐-S,--no-tlsโ do not use TLS for connections. super useful for cancelling out an option that got set in the config file, for instance. take that, config ๐-o,--torโ make all connections using a local Tor proxy. Tor is The Onion Router. set theTOR_PROXYenv variable if you wanna use an address other than the Tor default of127.0.0.1:9050. ๐ง-O,--no-torโ disable Tor. onion off, bestie ๐ง โ-w COLUMN,--wrap COLUMNโ wrap long lines in Gopher "text" views atCOLUMN. default:0(off). no wrap, no stress โจ-m PATH,--media PATHโ use the program atPATHto open media files (movies and sounds). default:mpv๐ฌ-M,--no-mediaโ don't try to open media files. download them like regular binary Gopher items instead. just grab it and go ๐ฅ-a,--autoplayโ autoplay media files instead of prompting. instant gratification, periodt โก-A,--no-autoplayโ don't autoplay media files. prompt instead. consent-based media consumption โ-c FILE,--config FILEโ useFILEinstead of~/.config/phetch/phetch.conf. custom config, custom life ๐๏ธ-C,--no-configโ do not use any config file. feral mode ๐พ-t FILE,--theme FILEโ useFILEfor the color theme. make it pretty ๐จ--print-themeโ print the current theme. show me the palette ๐-e ENCODING,--encoding ENCODINGโ render text views inCP437orUTF8(default) encoding. choose your charset, bestie ๐ค-h,--helpโ print a help summary and exit. the classic ๐ซถ-v,--versionโ print version information and exit. who am i? ๐
๐ NOTES ๐
when you give it a URL, phetch shows the requested Gopher page and enters interactive mode. that's the whole flow ๐ซ
without a URL, phetch shows a builtin dashboard with easy access to online help, bookmarks and history โ and then enters interactive mode. a lil home base ๐ก
โจ also important: command line options always override options set in phetch.conf. the command line is the final boss ๐
๐ฎ NAVIGATION ๐ฎ
โจ๏ธ KEYBOARD SHORTCUTS โจ๏ธ
all single letter commands also work with the Ctrl key: e.g., h and Ctrl+h are synonyms. so you got options, iykyk ๐
hโ go to builtin help page.qโ quitphetch.- left arrow โ go back in history.
- right arrow โ go forward in history.
- up arrow,
p,kโ select previous link. - down arrow,
n,jโ select next link. - PgUp,
-โ scroll up by many lines. - PgDn, SPACE โ scroll down by many lines.
- Number key โ open/select link. ๐ข
- Enter โ open current link.
- Esc, Ctrl+c โ cancel.
f,/โ find link in page. ๐gโ go to Gopher URL.Rโ reload current URL.uโ edit URL.yโ copy URL. ๐bโ show bookmarks.sโ save bookmark. ๐พaโ show history. (mnemonic: All pages/history)rโ view raw source.wโ toggle wide mode.eโ toggle encoding betweenUTF8andCP437.
๐งญ MENU NAVIGATION ๐งญ
- Up and down arrows โ use the up and down arrows, the
jandkkeys, or thenandpkeys to select links.phetchwill scroll for you, or you can use page up and page down (or-and spacebar) to scroll by many lines at once. it's got you ๐ซถ - Number keys โ if there are few enough menu items, pressing a number key will open a link. otherwise, the first matching number will be selected. use Enter to open the selected link. ๐ข
- Incremental search โ press
for/to activate search mode, then just start typing.phetchwill look for the first case-insensitive match and try to select it. use arrow keys or Ctrl+p/Ctrl+n to cycle through matches. type-and-hunt, iconic ๐
๐ BOOKMARKS ๐
there are two ways to save the URL of the current page, bestie:
yโ copy URL. ๐sโ save bookmark. ๐พ
bookmarks get saved to the file ~/.config/phetch/bookmarks.gph โ but only if the directory ~/.config/phetch/ exists. so make the folder first, ok? ๐ฅบ
bโ view saved bookmarks. ๐
๐ the clipboard function usespbcopyon MacOS, andxsel -sel clipon Linux. that's just how it is ๐
๐ฐ๏ธ HISTORY ๐ฐ๏ธ
if you create a history.gph file in ~/.config/phetch/, every Gopher URL you open gets stored in there. automatic memory, no thoughts ๐ง โจ
new URLs are appended to the bottom, but they're loaded in reverse order โ so when you press the a key you'll see all the most recently visited pages first. freshest at the top, periodt ๐ฅ
and honestly? feel free to edit your history file directly, or share it with your friends! it's your data, bestie, go wild ๐
โ๏ธ CONFIG โ๏ธ
if you create a phetch.conf file in ~/.config/phetch/, it'll be automatically loaded when phetch starts. the config file supports most command line options, for your convenience, plus a few ways to customize your browsing experience. for example, phetch will always launch in TLS mode if tls yes appears in the config file โ no need to pass --tls or -t on startup. set it and forget it ๐ซง
here's an example config with all options:
# Page to load when launched with no URL argument.
start gopher://phetch/1/home
# Always use TLS mode. (--tls)
tls no
# Connect using local TOR proxy. (--tor)
tor no
# Always start in wide mode.
wide no
# Program to use to open media files.
media mpv
# Use emoji indicators for TLS & Tor.
emoji no
# Encoding. Only CP437 and UTF8 are supported.
encoding utf8
# Wrap text at N columns. 0 = off (--wrap)
wrap 0
# How many lines to page up/down by? 0 = full screen
scroll 0
# Path to theme file, if you want to use one
theme ~/.config/phetch/dark.theme
๐จ THEMES ๐จ
you can change phetch's color scheme by supplying your own theme file with --theme/-t, or by setting theme FILE in your phetch.conf. customize away, bestie ๐
you can also view the current theme with:
$ phetch --print-theme
theme files look like this:
ui.cursor white bold
ui.number magenta
ui.menu yellow
ui.text white
item.text cyan
item.menu blue
item.error red
item.search white
item.telnet grey
item.external green
item.download white underline
item.media green underline
item.unsupported whitebg red
valid colors for use in phetch themes:
bold
underline
grey
red
green
yellow
blue
magenta
cyan
white
black
darkred
darkgreen
darkyellow
darkblue
darkmagenta
darkcyan
darkwhite
blackbg
redbg
greenbg
yellowbg
bluebg
magentabg
cyanbg
whitebg
that's the whole palette, slay ๐
๐ฌ MEDIA PLAYER SUPPORT ๐ฌ
phetch includes support for opening video files (; item type) and sound files (s item type) in mpv or an application of your choice, using the -m command line flag. to test it out, visit a compatible Gopher server, or check out the "gopher types" help page by launching phetch and then pressing ctrl-h then 3. tutorial speedrun ๐โโ๏ธ๐จ
by default phetch will prompt you when you try to open a media file, but you can change this behavior by starting it with --autoplay/-a, or by setting autoplayer true in your config file. your call, bestie ๐
๐ ABOUT ๐
phetch is maintained by chris west, and released under the MIT license.
phetch's Gopher hole:
gopher://phkt.io/1/phetch
phetch's webpage:
https://github.com/xvxx/phetch
๐ฆ aaaand that's the whole page! this edition is dated 1980-01-01 and lives under the PHETCH(1) name in the General Commands Manual โ vintage date, immaculate vibes. go forth and gopher, bestie ๐โจ๐
๐ฆ where this page comes from
- nixos 26.05: phetch 1.2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms