Skip to content

improve compatibility with older ncurses #26

Open
@jose1711

Description

@jose1711

the goal is to use chafa as an image viewer inside vifm while preview mode is active (the other panel is still visible). as per comment by vifm's author it looks like there's a compatibility issue with limitation of color pair coming with ncurses. to cite:

If the image looks better in the same terminal outside vifm, then this is probably a
result of limited number of color pairs. curses library (except for some recent versions,
which do it in backwards incompatible way, I think) limits how many foreground-background
pairs it can handle for historical reasons. And vifm can't work around it except for supporting
newer curses API, which might lift this limitation on systems where it's available. Currently
that API isn't supported.

t4jlwzb
The whole discussion is at https://q2a.vifm.info/407/configure-chafa-image-viewer-images-within-vifm-image-defects. I wonder if it's possible for add something like a "legacy ncurses" mode which would make the images render better in such configuration.

Metadata

Metadata

Assignees

Labels

compatibilityCompatibility (e.g. terminal quirks)featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions