Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the TERMINAL_EMULATOR environment variable #253

Closed
mikehearn opened this issue Oct 12, 2022 · 2 comments
Closed

Set the TERMINAL_EMULATOR environment variable #253

mikehearn opened this issue Oct 12, 2022 · 2 comments

Comments

@mikehearn
Copy link
Contributor

Sometimes console libraries need to detect the IntelliJ terminal to work around quirks or customize things in other ways. Today there's no good way to do this. It would be ideal if TERMINAL_EMULATOR were to be set in the environment of the shell consistently, so apps can know what they're dealing with.

@ajalt
Copy link

ajalt commented Oct 16, 2022

VSCode and XTerm/iTerm all use the environment variable TERM_PROGRAM, so that seems to be the most standard.

@segrey
Copy link
Contributor

segrey commented Oct 17, 2022

Actually, IntelliJ terminal sets TERMINAL_EMULATOR=JetBrains-JediTerm environment variable in IntelliJ terminal plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants