Skip to main content

Module terminal_detection

Module terminal_detection 

Source
Expand description

Terminal detection primitives shared across VT Code crates.

Enums§

TerminalFeature
Terminal features that can be configured.
TerminalSetupAvailability
How VT Code should present /terminal-setup for a terminal.
TerminalType
Supported terminal emulators.

Constants§

ITERM2_DYNAMIC_PROFILE_FILENAME
Filename of the shipped iTerm2 dynamic profile.
ITERM2_ICON_MODE_CUSTOM
Profile Icon mode selecting a custom image.
ITERM2_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.