Skip to content

Commit e161d1d

Browse files
authored
Add support for Windows Terminal (#8)
\Co-authored-by: Sindre Sorhus <[email protected]>
1 parent 99da355 commit e161d1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ function supportsHyperlink(stream) {
6666
return false;
6767
}
6868

69+
// Windows Terminal
70+
if ('WT_SESSION' in env) {
71+
return true;
72+
}
73+
6974
if (process.platform === 'win32') {
7075
return false;
7176
}

0 commit comments

Comments
 (0)