atanunq / viuer

Rust library for displaying images in the terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better detection of OSC 1337 support

kidonng opened this issue · comments

commented

Currently viuer dumbly checks iTerm in TERM_PROGRAM. However there are a handful of terminal emulators that support the OSC 1337 escape codes, i.e. iTerm2's image protocols:

There should be a better method of checking support of the protocol.

A workaround is just to fake iTerm to viuer.

The list is really helpful, thank you! I am struggling to find information about SwiftTerm and MacTerm, though. Do they set either $TERM or $TERM_PROGRAM?

Mlterm & hterm look pretty niche to me, I'd rather not include them unless specifically requested.

Added the first two in 42cd38c