keyboard – Select by one character using shift + arrow does not work in Terminal

after fresh reinstall of macOS (started with High Sierra, not updated up to Big Sur), I am unable to use Shift + ← and Shift + → in Terminal, it returns symbols instead of selecting one character on left or right side.

  • Shift + ← returns e(1;2C
  • Shift + → returns e(1;2D

I was unable to find fix, I have tried using Terminal and iTerm2.

How to fix this?

//EDIT: Mapping shift-right to e(1;2C, and shift-left to e(1;2D from this post does not work.