Expand description
Terminal detection primitives shared across VT Code crates.
Structs§
- ITerm2
Profile Conditions - Named gate conditions for the one-shot iTerm2 profile switch.
Enums§
- Terminal
Feature - Terminal features that can be configured.
- Terminal
Setup Availability - How VT Code should present
/terminal-setupfor a terminal. - Terminal
Type - Supported terminal emulators.
Constants§
- ITER
M2_ DEFAULT_ PROFILE_ NAME - Name of iTerm2’s built-in default profile, used as the restore fallback when the session’s original profile cannot be determined.
- ITER
M2_ DYNAMIC_ PROFILE_ FILENAME - Filename of the shipped iTerm2 dynamic profile.
- ITER
M2_ ICON_ MODE_ CUSTOM - Profile
Iconmode selecting a custom image. - ITER
M2_ PROFILE_ NAME - Name of the VT Code iTerm2 profile shipped for tab-icon support. Distinctive so the one-shot profile switch never hijacks an unrelated user profile with a generic name.
Functions§
- installed_
iterm2_ profile_ path - Installed dynamic-profile path under
home. - is_
ghostty_ terminal - Returns whether the terminal identifiers point to Ghostty.
- iterm2_
dynamic_ profiles_ dir - iTerm2 DynamicProfiles directory under
home. - original_
iterm2_ profile_ name - The profile name to restore after VT Code’s one-shot icon switch.
- should_
apply_ iterm2_ profile - Pure gate for the one-shot iTerm2 profile switch.
- should_
apply_ iterm2_ profile_ now - Environment plus install gate evaluated against the live process.