by jchw · 6y ago · 0 comments
Seems like mostly only GNOME Terminal and iTerm2. Here’s some that apparently won’t work:
- Konsole
- Kitty
- LXDE Terminal
- MATE Terminal
- hyper
- Windows Terminal
- ConEmu
- PuTTY
... so it’s kind of weird to suggest this is an accepted standard. Especially since some of the discussions in feature requests suggest they will likely not implement it due to security concerns or otherwise.
It isn’t like this feature degrades support for any other terminal, just improves life for some users. Why complain?
In this case it isn’t the worst problem ever. but i think support for this should probably be removed from terminal emulators unless a quorum of popular terminal emulators support it.
(Addendum: do developers actually do things that only work in virtually a single terminal emulator? Yeah. A lot of Node.JS software printed status using emoji that broke horridly on everything but macOS. It mostly works elsewhere now, and it was purely a visual problem, but I would assume many didn’t even realize what their app would’ve done in most terminal emulators. The same with hyperlinks would be a disaster.)
We shall call it the ‘terminal capabilities library’.
Naw, that's too long, call it something short and snappy like "termcap".
This particular instance implemented by GCC10 seems the perfect example: if your terminal has no support, you get a short string like CWE-415, which is probably enough for Google; but if your terminal does support this feature, clicking on it will immediately bring you to the right page.
https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3c...
I always assumed the emulator accessed the working directory of the child process (as in /proc/$PID/cwd). On my terminal the CWD feature only seems to work for the topmost shell, and symlinks get resolved.
EDIT: Linked bug report mentions OCS7 (presumably an escape sequence), as one of the ways to track CWD.