MacOS – Customise iTerm sudo password prompt

high sierraitermmacoszsh

Recently iTerm started showing an emoji key instead of the sexy key symbol at password prompts.

It now shows this:

enter image description here

But I don't like the ugly emoji there.

I want to see (this is what it looks like on Terminal.app):

enter image description here

How can I get it to look like the symbol above?

It almost seems like Terminal.app makes the key symbol part of the cursor (it blinks with the cursor).

Best Answer

I found the setting that turns this off, it's in advanced preferences. Not sure you can make it look like the normal terminal one, but this might help folks that want to get rid of the key entirely.

iTerm2 > Preferences > Advanced > Experimental Features > "Show key at cursor at password prompt" => No