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 6b47279204bef8b89cbe570c390e5c6f84b15731
parent 0d354499f3051be3b72a2bf2d2e46d0c57663fab
Author: Sotiris Papatheodorou <sotiris@papatheodorou.xyz>
Date:   Mon, 16 Aug 2021 01:10:56 +0300

Fix the command line options

Looks like the smcup sequence stores and removes any arguments with
leading dashes. Didn't find any documentation of this anywhere so it
might as well be something else. At least this way both the options
and the hostname argument work.

Diffstat:
Mastro | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/astro b/astro @@ -259,12 +259,6 @@ EOF # Execution export LESS='-P Keys\: qgrbosHmM, to see a description run astro -h' -# Save terminal -tput smcup - -# Restore terminal -trap "tput rmcup && exit" EXIT SIGINT SIGHUP - # Parse arguments args="$*" case "$args" in @@ -278,6 +272,12 @@ case "$args" in ;; esac +# Save terminal +tput smcup + +# Restore terminal +trap "tput rmcup && exit" EXIT SIGINT SIGHUP + # Configuration [ -n "$HOME/.config/astro" ] && mkdir -p "$HOME/.config/astro" configfile="$HOME/.config/astro/astro.conf"