Change Working Directory (OSC 7)

Change the current working directory of the terminal.

  1. 0x1B
    ESC
  2. 0x5D
    ]
  3. 0x37
    7
  4. 0x3B
    ;
  5. ____
    u
  6. 0x1B
    ESC
  7. 0x5C
    \

Change the current working directory to the path denoted by the URI u.

The URI should always have a scheme of file:// and point to an existent folder.

Primarily used by shell integrations for the shell to inform the terminal when the current working directory has changed.