💾 Archived View for gmi.noulin.net › bato.gmi captured on 2024-08-19 at 03:57:10. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-12-28)
-=-=-=-=-=-=-
2024-08-07
bato is spartan and gemini tui browser for terminals. It can parse gemtext and markdown and browse files on local disk.
bato displaying a markdown file [IMG]
bato is available in my ssh service, connect with ssh and then press b:
ssh kiosk@apps.noulin.net
bato.gz (gziped elf executable 2024-02-22 no gemini)
Bato depends on `sheepy` and `openssl`.
Sheepy is a build system for using C as a scripting language like python. It takes less than 5 minutes to install sheepy on a machine:
apt-get install gcc git git clone https://spartatek.se/git/sheepy.git cd sheepy sudo -H ./install.sh
Then install bato like this:
sudo spm -g install bato
F1 or ? for help, q quit.
Features:
- Support for spartan protocol and local files
- Support for gemini protocol
- History
- Bookmarks
- Mouse and keyboard support
- Jump to headers within page
- Gemtext support
- Markdown support
- Support for TOFU, trust and tempory trust
- Support for gemini input
- Query from command line with -q option
- Support for client certificates (= identities, client certificates are not sent when redirects are absolute URLs)
- Identities are saved ~/.bato/identities/ in pem format
- Connections are synchronous (TUI freezes), when a server doesn't respond after 10s, the connections is closed.
- Redirects are limited to 5
- Inertial scrolling is available
- Right click goes back in history
TODO:
- sidebar has fixed sized
- dialog panels have fixed size and position
- emoji length is counted incorrectly, the UI gets messed up
- search doesn't work on markdown pages
The configuration files are located in ~/.bato/
Delete ~/.bato to restart from scratch.
About the markdown syntax:
- GFM github flavored markdown
- *italic*
- _underline_
- __bold__
- -faint-
- %inverse%
- !conceal/hidden!
- ~crossed~
- ^blink^
- colors
[fgx800034](#x800034)
[fg9](#9) [fg15](#15) - standard 16 terminal **colors**
background color
[fgx12AB34 bgxffffff](#x12AB34#xffffff)
[fgxffAB34 bg1](#xffAB34#1)
[bgxffffff](##xffffff) < default fg color
[fgd bg1](##1) [fg9 bg2](#9#2) - standard 16 terminal colors
- anchors: destination [|id] and link [to id](|id)
- html entities: &xUnicodeHex; or &name;
- tables
| foo | bar |
| --- | --- |
| baz | bim |
| bot | bel |