Skip to main content

detect_for

Function detect_for 

Source
pub fn detect_for<T>(transport: &T) -> Backend
where T: Transport,
Expand description

Capability detection driven by the active [Transport]’s client_term. The SSH transport returns the terminal type the peer announced via pty-req; the local transport returns $TERM. Falls back to the daemon’s own environment for the remaining hints (KITTY_WINDOW_ID, TERM_PROGRAM) — those have no SSH equivalent today.