wire / terminal-osc / 6
OSC 6 reports the current working directory to iTerm2 (iTerm2-specific variant of OSC 7).
aka: OSC 6 · OSC 6 — Current working directory (iTerm2)
OSC introducer: \x1b] ESC ] (0x1B 0x5D)
terminator (ST|BEL): ST \x1b\ · BEL \x07
| id | name | bytes (ST) | meaning |
|---|---|---|---|
| report | Report cwd (iTerm2) | \x1b]6;file://localhost/home/user\x1b\ | OSC 6 ; file://hostname/path ST reports the current working directory. |
agent: curl -H 'accept: application/json' wire.phall.io/terminal-osc/6
or /terminal-osc/6.json