Skip to content

Proprietary Escape Codes - Some are not Working for me...

  • iTerm2 version: Build 3.2.2beta2

  • OS version: 10.12.6 (16G1510)

Detailed steps to reproduce the problem: Using some iterm 2 Proprietary Escape Codes - https://www.iterm2.com/documentation-escape-codes.html Some work, some don't. I have not disabled the advanced pref. Some work, some don't.

What happened/should have happened:

Started my adventure with wanting to change the background of a terminal sans AppleScript as I'd done previously. Tried some other codes to make sure I had some baselines that worked and found some interesting results.

Using bash.

This should set the background to /var/tmp/test.png (base64 encoded the path).

printf "\e]1337;SetBackgroundImageFile=L3Zhci90bXAvdGVzdC5wbmcK\007"

It does nothing.

This should unset the background image:

printf "\e]1337;SetBackgroundImageFile=\007"

It doesn't unset it.

Did some testing with the copy side...

One of these should set the pasteboard to 'hello'.

printf "\e]1337;Copy=aGVsbG8K\007" printf "\e]1337;Copy=;aGVsbG8K\007"

Neither does it.

Played with notifications to test my sanity (and escape sequences).

This should bounce the dock.

printf "\e]1337;RequestAttention=yes\007"

Does nothing...

But this does have the intended effect...

printf "\e]1337;RequestAttention=fireworks\007"

So either I'm doing this wrong or something is broken, or maybe both...