You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
phetch/README.md

149 lines
4.4 KiB
Markdown

4 years ago
<!--
4 years ago
/ / /
___ (___ ___ (___ ___ (___
4 years ago
| )| )|___)| | | )
4 years ago
|__/ | / |__ |__ |__ | /
|
4 years ago
--> <p align="center"> <img src="./img/logo.png"> <br>
4 years ago
<a href="https://git.io/JvR5g">
<img src="https://github.com/xvxx/phetch/workflows/build/badge.svg">
4 years ago
</a>
4 years ago
<a href="https://docs.rs/phetch">
<img src="https://docs.rs/phetch/badge.svg">
4 years ago
</a>
4 years ago
<a href="https://git.io/JveQo">
4 years ago
<img src="https://img.shields.io/github/v/release/xvxx/phetch?include_prereleases">
</a>
</p>
4 years ago
4 years ago
`phetch` is a terminal client designed to help you quickly navigate
the gophersphere.
5 years ago
4 years ago
<hr>
4 years ago
![demo of phetch in action](img/phetch-demo.gif "demo of phetch")
4 years ago
## features
5 years ago
- <1MB executable for Linux and Mac
4 years ago
- Technicolor design (based on [GILD](https://github.com/xvxx/gild))
4 years ago
- No-nonsense keyboard navigation
- Supports Gopher searches, text and menu pages, and downloads
- Save your favorite Gopher sites with bookmarks
- Opt-in history tracking
- Secure Gopher support (TLS)
4 years ago
- Tor support
5 years ago
4 years ago
## usage
4 years ago
phetch [options] Launch phetch in interactive mode
phetch [options] url Open Gopher URL in interactive mode
4 years ago
Options:
4 years ago
-s, --tls Try to open Gopher URLs securely w/ TLS
-o, --tor Use local Tor proxy to open all pages
-S, -O Disable TLS or Tor
4 years ago
4 years ago
-r, --raw Print raw Gopher response only
-p, --print Print rendered Gopher response only
-l, --local Connect to 127.0.0.1:7070
4 years ago
4 years ago
-c, --config FILE Use instead of ~/.config/phetch/phetch.conf
4 years ago
-C, --no-config Don't use any config file
4 years ago
-h, --help Show this screen
-v, --version Show phetch version
4 years ago
Command line options always override options set in phetch.conf.
4 years ago
Once you've launched phetch, use `ctrl-h` to view the on-line help.
4 years ago
4 years ago
## installation
If you already have a Gopher client, download `phetch` here:
gopher://phkt.io/1/phetch/latest
On macOS you can install with [Homebrew](https://brew.sh/):
4 years ago
brew install xvxx/code/phetch
On Arch Linux, install phetch with your favorite [AUR helper][aur]:
yay phetch
4 years ago
Binaries for Linux, Raspberry Pi, and Mac are available at
4 years ago
https://github.com/xvxx/phetch/releases:
4 years ago
- [phetch-v0.9.0-linux-x86_64.tgz][0]
- [phetch-v0.9.0-linux-armv7.tgz (Raspberry Pi)][1]
- [phetch-v0.9.0-macos.zip][2]
4 years ago
4 years ago
Just unzip/untar the `phetch` program into your $PATH and get going!
4 years ago
You can also build and install from source if you have `cargo`,
`make`, and the other dependencies described in the next section:
4 years ago
git clone https://github.com/xvxx/phetch
cd phetch
env PREFIX=/usr/local make install
## development
To build with TLS support on **Linux**, you need `openssl` and
`pkg-config`:
sudo apt install -y pkg-config libssl-dev
Regular development uses `cargo`:
5 years ago
cargo run -- <gopher-url>
4 years ago
*Pro-tip:* Run a local gopher server (like [phd][phd]) on
`127.0.0.1:7070` and start phetch with `-l` or `--local` to quickly
connect to it.
phetch builds with TLS and Tor support by default. To disable these
features, or to enable only one of them, use the
`--no-default-features` flag:
cargo build --no-default-features
4 years ago
You can check whether TLS is enabled by visiting the About page:
cargo run --no-default-features -- gopher://phetch/about
To enable just TLS support, or just Tor support, use `--features`:
cargo run --no-default-features --features tor -- gopher://phetch/about
4 years ago
## todo
- [ ] catch SIGWINCH
## bugs
- [ ] ctrl-c while telneting kills phetch
4 years ago
- [ ] ctrl-c in load() not yet implemented
- [ ] ctrl-c in download fails to return to listening state
4 years ago
because of termion bug:
https://gitlab.redox-os.org/redox-os/termion/issues/168
4 years ago
- [ ] gopher://tilde.black/1/users/genin/
4 years ago
4 years ago
## future features
4 years ago
- [ ] track binary size per release
4 years ago
- [ ] text views are menus when URLs are present (one per line max)
- [ ] Find Text in Text views
4 years ago
- [ ] fuzzy find incremental search
- [ ] persistent history
- [ ] bookmarks: toggle instead of just prepending to the file
- [ ] bookmarks: save the title of the current page
[0]: https://github.com/xvxx/phetch/releases/download/v0.9.0/phetch-v0.9.0-linux-x86_64.tgz
[1]: https://github.com/xvxx/phetch/releases/download/v0.9.0/phetch-v0.9.0-linux-armv7.tgz
[2]: https://github.com/xvxx/phetch/releases/download/v0.9.0/phetch-v0.9.0-macos.zip
4 years ago
[phd]: https://github.com/xvxx/phd
[aur]: https://wiki.archlinux.org/index.php/AUR_helpers