Skip to content

Commit

Permalink
Add support for Windows Terminal (#8)
Browse files Browse the repository at this point in the history
\Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
dropsonic authored Aug 20, 2024
1 parent 99da355 commit e161d1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ function supportsHyperlink(stream) {
return false;
}

// Windows Terminal
if ('WT_SESSION' in env) {
return true;
}

if (process.platform === 'win32') {
return false;
}
Expand Down

0 comments on commit e161d1d

Please sign in to comment.