iterm2 has recently released its latest version 3.5, and one of the features is this
But I didn't find where to set it and I don't know how to turn it on
I can't find where to turn this on in the settings page of the profile
Edit -> Render Selection
or use hotkey on Mac Command + Option + E