Last 12 weeks · 0 commits
4 of 6 standards met
This PR expands terminal support for the package beyond iTerm2. Problem Besides iTerm2, some other terminals also implements support for the inline images protocol. Currently, this package throws an unsupported error even if it's used in a terminal that supports the protocol. There isn't a authoritative list of supported terminals on the internet, but I added checks for all those I know of. Changes (high-level) Added support and version checks for the following terminals: WezTerm (>= v20220319) Relevant: https://wezterm.org/imgcat.html Konsole (>= v22.04) Relevant: https://www.reddit.com/r/kde/comments/ul0irg/comment/i7tlrd5/ https://invent.kde.org/utilities/konsole/-/merge_requests/594 Rio (>= v0.1.13) Relevant: https://rioterm.com/docs/features/iterm2-image-protocol https://github.com/raphamorim/rio/releases/tag/v0.1.13 VSCode integrated terminal (>= v1.80) Relevant: https://code.visualstudio.com/updates/v1_80 Also see https://github.com/sindresorhus/ansi-escapes/pulls/39 Added tests for the new terminals and updated the test snapshots accordingly Slightly modified the test for iTerm2 so the test always behaves like it's running in a macOS environment Updated documentation in README with the expanded list of supported terminals Improved the error message in to clearly list all supported terminals and their minimum versions.
Protocol definition: https://sw.kovidgoyal.net/kitty/graphics-protocol.html Reference code: https://github.com/kovidgoyal/kitty/blob/main/kittens/icat/main.py Some reading that someone with more : https://github.com/weechat/weechat/issues/1430 According to the protocol document, xterm also supports this graphics protocol, although, i haven't tested it.
Repository: sindresorhus/term-img. Description: Display images in iTerm Stars: 318, Forks: 12. Primary language: JavaScript. Languages: JavaScript (95.3%), TypeScript (4.7%). License: MIT. Topics: cli-utility, image, iterm2, nodejs, npm-package, terminal-image. Latest release: v7.1.0 (9mo ago). Open PRs: 0, open issues: 1. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, kevva, Richienb, BendingBender, endernoke, MichaelDeBoey, tmgldn.