Bug 261037

Summary: www/w3m: always enable non-external image support (mlterm, sixel, iterm, kitty)
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: MANTANI Nobutaka <nobutaka>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: patch
Priority: --- Flags: nobutaka: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
v1 (apply via "git am") nobutaka: maintainer-approval+

Description Jan Beich freebsd_committer freebsd_triage 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 freebsd_triage 2022-01-15 14:51:10 UTC
Thank you for the patch! I approve it.
Comment 2 commit-hook freebsd_committer freebsd_triage 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(-)