Expand description
Terminal detection primitives shared across VT Code crates.
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_ 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. - 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.