pub enum TerminalType {
Show 14 variants
Ghostty,
Kitty,
Alacritty,
WezTerm,
TerminalApp,
Xterm,
Zed,
Warp,
ITerm2,
VSCode,
WindowsTerminal,
Hyper,
Tabby,
Unknown,
}Expand description
Supported terminal emulators.
Variants§
Ghostty
Kitty
Alacritty
WezTerm
TerminalApp
Xterm
Zed
Warp
ITerm2
VSCode
WindowsTerminal
Hyper
Tabby
Unknown
Implementations§
Source§impl TerminalType
impl TerminalType
Sourcepub fn detect() -> Result<Self>
pub fn detect() -> Result<Self>
Detect the current terminal emulator from environment variables.
Sourcepub fn supports_feature(&self, feature: TerminalFeature) -> bool
pub fn supports_feature(&self, feature: TerminalFeature) -> bool
Check if terminal supports a specific feature.
Sourcepub fn has_native_multiline_support(&self) -> bool
pub fn has_native_multiline_support(&self) -> bool
Whether multiline input works without VT Code modifying terminal config.
Sourcepub fn terminal_setup_availability(&self) -> TerminalSetupAvailability
pub fn terminal_setup_availability(&self) -> TerminalSetupAvailability
How VT Code should present /terminal-setup for this terminal.
Sourcepub fn should_offer_terminal_setup(&self) -> bool
pub fn should_offer_terminal_setup(&self) -> bool
Whether /terminal-setup should appear in slash discovery surfaces.
Sourcepub fn config_path(&self) -> Result<PathBuf>
pub fn config_path(&self) -> Result<PathBuf>
Get the configuration file path for this terminal.
Sourcepub fn requires_manual_setup(&self) -> bool
pub fn requires_manual_setup(&self) -> bool
Check if terminal requires manual setup (vs automatic config).
Trait Implementations§
Source§impl Clone for TerminalType
impl Clone for TerminalType
Source§fn clone(&self) -> TerminalType
fn clone(&self) -> TerminalType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalType
impl Debug for TerminalType
Source§impl PartialEq for TerminalType
impl PartialEq for TerminalType
impl Copy for TerminalType
impl Eq for TerminalType
impl StructuralPartialEq for TerminalType
Auto Trait Implementations§
impl Freeze for TerminalType
impl RefUnwindSafe for TerminalType
impl Send for TerminalType
impl Sync for TerminalType
impl Unpin for TerminalType
impl UnsafeUnpin for TerminalType
impl UnwindSafe for TerminalType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more