Request: Application-detectable iTerm2 image support
With mintty's recent iTerm2 image support, and a few other terminals supporting it (e.g. wezterm), it would be nice if there was a documented way for applications to detect iTerm2 image capability.
For an application, it would be preferable if a solution is NOT one of the following:
- Terminal identification / versioning, e.g. check DA2. This would make every application need to ship a database to see if it is running on one of the "iTerm2 images are allowed" terminals.
- Put something in termcap/terminfo. Non-WSL Windows users would be left in the cold.
- Attempt to display an image and see if the cursor moved. This is doable, but would make initialization slightly harder. But the bigger concern is that the application has to blindly send iTerm2 image data to any terminal out there, which is not a nice thing to do.
The absolute easiest on the application side would be another attribute in DA1, then the application could check for iTerm2 in the same spot it looks for sixel support. Though there are multiple "expose terminal capabilities" discussions out there that do not like polluting the DA1 namespace with everyone's nifty new idea, iTerm2 image support is a worthy exceptions: it is not at all a minor feature, for some applications it could be a game-changer, and would deserve its own DA1 attribute. (It's not like DEC was overly concerned either about DA1 namespace: they put every new feature of theirs in there: Greek, Turkish, and even the other image format ReGIS.)
Thanks for your time and consideration.