Package Details: av-98 1.0.2dev-4

Git Clone URL: https://aur.archlinux.org/av-98.git (read-only, click to copy)
Package Base: av-98
Description: A command-line Gemini client.
Upstream URL: https://tildegit.org/solderpunk/AV-98/
Licenses: BSD
Submitter: sparrowhawk
Maintainer: sparrowhawk
Last Packager: sparrowhawk
Votes: 1
Popularity: 0.020368
First Submitted: 2020-07-10 11:03
Last Updated: 2020-09-07 15:42

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

m040601 commented on 2020-09-10 06:08

color, but ... does not use it unless the displayed text is ANSI

Yeap, you're right. That's what they mean by "color support" I find it, very difficult no navigate gemini pages, without it. So I think I'll keep testing other clients.

Any way, nice to see other Arch users testing this Gemini thing. Maybe we should open up a wiki page, or forum thread. There's one for Gopher :-)

https://wiki.archlinux.org/index.php/Gopher

sparrowhawk commented on 2020-09-07 16:17

Aaaah :) I've figured out your problem. It's a difference in features, and IMHO an opinionated one. In the other clients you mention, the client colors the page depending on metadata (like if it is a header or such). AV-98 does some formatting wrt to that, like underlining/bold and such, but to my knowledge does not use actual color. The "color support" that the README refers to is actually displaying the data in color when required, because the loaded file contains ANSI color escape codes (see the source of the "image" I linked).

Therefore, yes, AV-98 supports color, but by default at least does not use it unless the displayed text is ANSI color-coded. You can talk directly to solderpunk to discuss this choice :)

m040601 commented on 2020-09-07 15:50

gemini://gemini.circumlunar.space/users/marsue/portrait_color.gmi as a test .... AV-98 correctly displays it,

indeed, it's the first time i see color in av98. Maybe that "portrait_color.gmi" is some special page ? Am I quite new to this gemini thing.

What URL are you trying to access and expect to be in color ?

Basicly every single one, that I open both with amfora and av98 to compare. By "color support" as I understand it, I am expecting that H1 , H2 headers, links and links to https external sites should be displayed in different colors.

This is how, gemini://gemini.circumlunar.space renders in

amfora: https://i.imgur.com/MMaDGo3.png

bollux: https://i.imgur.com/XrFzVsk.png

av98: https://i.imgur.com/9ViU4a3.png

So no color at all, only that "AV-98" prompt. Even bollux, a gemini client simply written in bash displays colors,

PS:

bollux, https://git.sr.ht/~acdw/bollux amfora, https://aur.archlinux.org/packages/amfora . But I downloaded the binary from github. Didnt want to download 500 mega of go just to compile it

sparrowhawk commented on 2020-09-07 15:39

Hi, thank you for your comment! I honestly cannot tell why I put ansicolor instead of ansiwrap as an optional dependency, this is an error on my part, I'll upload a new package release fixing this.

I haven't really payed attention to color yet - maybe pages I read were supposed to have color and I didn't notice. Using gemini://gemini.circumlunar.space/users/marsue/portrait_color.gmi as a test though, it seems that AV-98 correctly displays it, even with and without ansiwrap (or ansicolor) installed.

What URL are you trying to access and expect to be in color ?

m040601 commented on 2020-09-07 14:56

Is it "python-ansicolor" or "python-ansiwrap" the optional dependency ?

I'm trying without sucess to have av98 display some color. I can see the same gemini pages with color using other cli gemini clients, for example amfora.

As I understand from the project's home page, https://tildegit.org/solderpunk/AV-98:

 ....it will “opportunistically import” a few other libraries if they are
 available to offer an improved experience.The ansiwrap library may result in 
neater display of text which makes use of ANSI escape codes to control colour.

I read this as "av98" supports color. Am I right ?

So he talks about this "ansiwrap" library, which links to, https://pypi.org/project/ansiwrap/ and https://github.com/jonathaneunice/ansiwrap

I even cloned the av98 repo to confirm this,

grep -ir ansiwrap ./AV-98

./av98.py:    import ansiwrap as textwrap

And that there is nowhere in the source code any reference whatsoever to anything called "ansicolor".

This "ansiwrap" is in fact a package available in Arch,

pacman -Si python-ansiwrap

URL             : https://github.com/jonathaneunice/ansiwrap

I even tried installing both "python-ansicolor" and "python-ansiwrap" and a third one called "python-ansicolors" (with "s" at the end).

Recompilled av-98, after changing the the PKGBUILD reference form "ansicolor" to "ansiwrap" or "ansicolors" but without sucess.

Any hints ? Thanks in advance