ESC ] 7; Pt; BEL is a non standard OSC sequence, but it's supported by Terminal.app and iTerm2 on macOS. It serves the purpose of getting the current working directory of a running shell that can be displayed in the terminal tab title.
Moreover, without support for OSC 7, the logs contain Error processing OSC: ESC]7;file://...BEL
ESC ] 7; Pt; BELis a non standard OSC sequence, but it's supported by Terminal.app and iTerm2 on macOS. It serves the purpose of getting the current working directory of a running shell that can be displayed in the terminal tab title.Moreover, without support for OSC 7, the logs contain
Error processing OSC: ESC]7;file://...BEL