Bug 261037 - www/w3m: always enable non-external image support (mlterm, sixel, iterm, kitty)
Summary: www/w3m: always enable non-external image support (mlterm, sixel, iterm, kitty)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: MANTANI Nobutaka
Keywords: patch
Depends on:
Reported: 2022-01-08 16:49 UTC by Jan Beich
Modified: 2022-01-15 18:38 UTC (History)
0 users

See Also:
nobutaka: maintainer-feedback+

v1 (apply via "git am") (1.04 KB, patch)
2022-01-08 16:49 UTC, Jan Beich
nobutaka: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2022-01-08 16:49:29 UTC
Created attachment 230824 [details]
v1 (apply via "git am")

Modern terminal emulators can render images e.g.,
- x11/foot supports sixel
- x11/kitty supports kitty (protocol)
- x11/wezterm supports sixel, iterm, kitty
- x11/xterm supports sixel

For example, to view web pages in a Wayland-only environment:

$ pkg install cage w3m libsixel foot
$ cage foot w3m -o inline_img_protocol=2 https://en.wikipedia.org/

Note, cage will spawn in a separate window if run under Xorg or another Wayland compositor.
Comment 1 MANTANI Nobutaka freebsd_committer 2022-01-15 14:51:10 UTC
Thank you for the patch! I approve it.
Comment 2 commit-hook freebsd_committer 2022-01-15 18:37:24 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=883f21dea197d634071e13bc0122533d305a5574

commit 883f21dea197d634071e13bc0122533d305a5574
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-01-08 16:37:13 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-01-15 18:36:17 +0000

    www/w3m: always enable non-external image support

    Allows to view images via mlterm/iterm/sixel/kitty protocols
    while avoiding X11 depends on Wayland.

    PR:             261037
    Approved by:    nobutaka (maintainer)

 www/w3m/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)