Open dropsonic opened 3 years ago
PR Welcome.
@jamestalmage it is not possible to properly implement it until microsoft/terminal#1040 is completed.
I was finding ways to know the version number as you said.
One way I thought of was to execute wt -v
(wt
is included in the Path
!).
But it opened up an alert window rather than printing it.
I asked why and they said the reason
One way I thought of was to execute wt -v (wt is included in the Path!).
Right now, this is the best way I could find to do it.
But we also want the version of Windows Terminal, don't we?
On Fri, 8 Jan 2021, 06:48 Richie Bendall, notifications@github.com wrote:
Right now, this is the best way I could find to do it https://github.com/Richienb/is-windows-terminal.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jamestalmage/supports-hyperlinks/issues/7#issuecomment-756485657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB55PTWKYDQT6YCNBB35MMTSYZMOFANCNFSM4T4P2A7Q .
@abhijit-hota Perhaps we can get the version from the Windows Store package.
Starting with v1.4, Windows Terminal supports embedded hyperlinks. However,
supports-hyperlinks
returnsfalse
for this terminal.As a workaround, I set the environment variable
FORCE_HYPERLINK
, and everything started working fine.It happens because there is a piece of code that disables hyperlink support everywhere on Windows (which is not correct):
It is possible to understand that we're running in Windows Terminal by checking
env.WT_SESSION
existence; however, it is not so easy to get the actual version of the terminal. See https://github.com/microsoft/terminal/issues/1040 for more details.