Recognizing the new terminal as an application #11098

Closed
opened 2026-01-31 02:38:32 +00:00 by claunia · 5 comments
Owner

Originally created by @Bios-Marcel on GitHub (Oct 21, 2020).

Depending on what feature set is a available on a terminal, an application might want to act differently. For example, using emojis and such should be avoided in the old windows terminal. Is there some easy way, that applications can use to know they are running on the new version of the windows terminal? Whether this is possible or not, it would be great to mention this somewhere in /doc I assume.

Originally created by @Bios-Marcel on GitHub (Oct 21, 2020). Depending on what feature set is a available on a terminal, an application might want to act differently. For example, using emojis and such should be avoided in the old windows terminal. Is there some easy way, that applications can use to know they are running on the new version of the windows terminal? Whether this is possible or not, it would be great to mention this somewhere in `/doc` I assume.
claunia added the Resolution-DuplicateIssue-Docs labels 2026-01-31 02:38:32 +00:00
Author
Owner

@Bios-Marcel commented on GitHub (Oct 21, 2020):

Somebody just hinted me that the variable introduced with https://github.com/microsoft/terminal/pull/897 (WT_SESSION) could probably be used for this.

@Bios-Marcel commented on GitHub (Oct 21, 2020): Somebody just hinted me that the variable introduced with https://github.com/microsoft/terminal/pull/897 (`WT_SESSION`) could probably be used for this.
Author
Owner

@DHowett commented on GitHub (Oct 21, 2020):

Applications should not attempt to detect whether they're running in WT. Any assumption they make will be invalidated with time. Any application that attempts to ascribe specific behavior to Windows Terminal will be wrong and cause unnecessary vendor lock-in when it inevitably fails to work on Hyper, Alacritty, Mintty, and ConEmu even though those terminals support all the same features.

For example, using emojis and such should be avoided in the old windows terminal.

This is only true today, and will not be true once the rendering engine in this repository converges with the one in Windows.

All of the code in this repository that pertains to the inbox console host eventually goes into Windows, and goes out into the "old" windows "terminal."

/dup #1060.

@DHowett commented on GitHub (Oct 21, 2020): Applications should not attempt to detect whether they're running in WT. Any assumption they make will be invalidated with time. Any application that attempts to ascribe specific behavior to Windows Terminal will be wrong and cause unnecessary vendor lock-in when it inevitably fails to work on Hyper, Alacritty, Mintty, and ConEmu even though those terminals support all the same features. > For example, using emojis and such should be avoided in the old windows terminal. This is only true today, and will not be true once the rendering engine in this repository converges with the one in Windows. All of the code in this repository that pertains to the inbox console host eventually goes into Windows, and goes out into the "old" windows "terminal." /dup #1060.
Author
Owner

@ghost commented on GitHub (Oct 21, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Oct 21, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@DHowett commented on GitHub (Oct 21, 2020):

Sorry, I meant /dup #1040!

@DHowett commented on GitHub (Oct 21, 2020): Sorry, I meant /dup #1040!
Author
Owner

@ghost commented on GitHub (Oct 21, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Oct 21, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11098