astro

a POSIX shell compatible gemini client (mirror of https://github.com/blmayer/astro)
git clone https://git.clttr.info/astro.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 84f1ebe85939fd32c35b5b81258989e2fde0d787
parent fd17588f4986694c6c0ea861eee1baa622f494c1
Author: blmayer <bleemayer@gmail.com>
Date:   Fri, 16 Jul 2021 14:20:23 -0300

Added s key binding

Fixed charset

Diffstat:
Mastro | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/astro b/astro @@ -136,7 +136,7 @@ fetch() { [ -f "$cachedir/links.txt" ] && rm "$cachedir/links.txt" # Set charset - charset="$(echo "$meta" | sed 's/.*charset=\([^;]\+\).*/\1/Ig')" + charset="$(echo "$meta" | grep -i "charset=" | sed 's/.*charset=\([^;]\+\).*/\1/Ig')" case "$charset" in "iso-8859-1" | "ISO-8859-1") charset="iso8859" ;; "utf-8" | "UTF-8" | "") charset="utf8" ;; @@ -221,7 +221,7 @@ fetch() { } # Execution -export LESS='-P q\: quit, g\: go to link, r\: reload, b\: back, o\: open and H\: go to homepage' +export LESS='-P q\: quit, g\: go to link, r\: reload, b\: back, o\: open, s\: save and H\: go to homepage' # Save terminal tput smcup