Skip to main content

TERM_CWD_MAX

Constant TERM_CWD_MAX 

Source
pub const TERM_CWD_MAX: usize = 4096;
Expand description

Upper bound on the cwd path in S2C_TERM_CWD_EVENT (and on the server-side OSC 7 store feeding S2C_TERM_CWD). 4096 is Linux’s PATH_MAX — no kernel-accepted cwd is longer (macOS caps at 1024) — and it sits well under the u16 length the family’s cwd_len:2 framing already imposes. Oversize OSC 7 reports are dropped.