Skip to main content

S2C_TERM_CWD_EVENT

Constant S2C_TERM_CWD_EVENT 

Source
pub const S2C_TERM_CWD_EVENT: u8 = 0x0F;
Expand description

Unsolicited working-directory push: [0x0F][pty_id:2][cwd:N]. cwd is the remainder of the message (no length prefix, like S2C_TITLE): an absolute UTF-8 path of at most TERM_CWD_MAX bytes. Broadcast to every connected client when the cwd reported by shell integration (OSC 7) changes; identical per-prompt re-reports are not re-sent. Shells without OSC 7 integration never trigger this — clients keep the C2S_TERM_CWD poll as the fallback (docs/protocol.md, “Working directory tracking”).