Mac terminal shift+ direction key garbled

recently, I suddenly found a problem with terminal that comes with mac, including iterm2 and other command lines of app (such as vscode):
strange characters will appear when using shift+ direction keys (in fact, control+ direction keys will also have)

clipboard.png

I don"t know how to solve it, so it"s the same with zsh instead.

in terms of what I have done recently, I have added several themes to terminal and upgraded the system
macOS version: 10.14.3

Jul.15,2022
The

console only accepts input characters and is not responsible for understanding the meaning of the input behavior. So the mac console can not understand the meaning of your shift+ key operation, so it is directly escaped to input characters into the console.

Menu