MacOS – How to change the color in Terminal indicating the use of a dead key

keyboardmacosterminal

A dead key (a key that does not generate a complete character by itself but modifies the character generated by the key struck immediately after) is indicated with a yellow background to previous the final character.

enter image description here

It's perfect when you write black on white, but not when you write white on black, like in some Terminal configurations.

enter image description here

My question is: Where can I change that color?

Best Answer

This isn't a clean fix, but here's a work around:

Keep the Terminal as Black on White but then go to:

System Preferences > Accessibility > Display > Invert Colors

Doing this will change your Terminal (and everything else) to White on Black, but also change the yellow dead key to blue.

enter image description here


You can also turn Invert Colors on and off using a keyboard shortcut if you turn it on in the keyboard preferences:

enter image description here