Open jamestalmage opened 6 years ago
Maybe @KayLeung @kamioftea
I'm on linux, running GNOME Terminal 3.28.2 using VTE 0.52.2:
$ echo $VTE_VERSION
5202
$ node
> process.env.VTE_VERSION
'5202'
Links work perfectly. But note that VTE_VERSION is without dots
xterm
and alacritty
only populate TERM
, not either TERM_PROGRAM
nor VTE_VERSION
. WezTerm
set it's name in TERM_PROGRAM
(but uses xterm-256 for TERM? maybe an issue in my config?)(alacritty
and WezTerm
supports OSC8/hyperlinks but xterm
does not. yet.)
alacritty -e bash -c "node -e 'e=process.env;console.log(e.TERM,e.TERM_PROGRAM,e.VTE_VERSION)' > /tmp/alacrity.txt"
wezterm -e bash -c "node -e 'e=process.env;console.log(e.TERM,e.TERM_PROGRAM,e.VTE_VERSION)' > /tmp/terms-wezterm.txt"
xterm -e "node -e 'e=process.env;console.log(e.TERM,e.TERM_PROGRAM,e.VTE_VERSION)' > /tmp/terms-xterm.txt"
grep ^ /tmp/terms-*|column -ts'[: ]'
app $TERM $TERM_PROGRAM $VTE_VERSION
alacrity alacritty undefined undefined
wezterm xterm-256color WezTerm undefined
xterm xterm-256color undefined undefined
Linux has so many different flavors of Terminal emulators, including numerous VTE based ones. I'm not sure the logic here is enough.
@sindresorhus, @qix-, got any linux users who helped sort things out on
supports-color
that you could ping here?