OSC 52 adds a newline
This is a follow-on issue from #6842 (closed) now that I've enabled clipboard access in prefs
- iTerm2 version: 3.1.7
- OS version: 10.12.16
Detailed steps to reproduce the problem:
- Enable Prefs > General > Applications in terminal may access clipboard
- Run
printf $'\e]52;c;%s\a' "$(base64 <<<'hello world')"
- Paste with cmd-v
What happened: Pasted "hello world\n" but there was no newline in the input.
What should have happened: Pasted "hello world" without the newline.
Notes:
- I double-checked that there's no newline at the end of the base64-encoded string.
- hterm.js handles the same without adding a newline
- Including a newline in the input results in a double-newline from iterm2:
printf $'\e]52;c;%s\a' "$(base64 <<<$'hello world\n')"
Edited by Aron Griffis