ajalt / mordant

Multiplatform text styling for Kotlin command-line applications
https://ajalt.github.io/mordant/
Apache License 2.0
982 stars 34 forks source link

Term capabilities for gnome-terminal #132

Open mdgeorge4153 opened 1 year ago

mdgeorge4153 commented 1 year ago

I'm using gnome terminal, and $TERM returns xterm-256color. It seems like links are supported, but it looks like the default Terminal() object sets ansiHyperlinks to false.

ajalt commented 1 year ago

I'm happy to add support for gnome terminal, but to do that we'd need to be able to detect it. I don't see any mention of hyperlinks in their changelog, so I'm not sure when support for them were added.

Does gnome terminal set any envvarrs like TERM_PROGRAM that would allow us to tell we're running on it?