One way to fix your issue is to:
- In
Terminal.app > preferences > Settings > Keyboard
there's a Key -> Action list. - In that list find or add
option cursor left
andoption cursor right
and set their values to\033b
and\033f
respectively. - Quit and restart Terminal.app