wl0lhq
Last Updated: February 25, 2016
·
1.23K
· jamesgecko

alt+arrow keys produce [C [D

When using irb in iTerm, trying to jump by word via alt+right and alt+left produced [C and [D. The issue was that the terminal was sending key codes irb didn't like. Fortunately, the fix is easy.

  • Open iTerm's preferences and edit profile shortcut keys.

Picture

  • For alt+right, send the escape sequence f.
  • For alt+left, send the escape sequence b.
Say Thanks
Respond

2 Responses
Add your response

10449
A0d1d8413bb8aa50daf09ed5c1c35320

This helped me so much, thanks!

over 1 year ago ·
14434
F56a6e1b74d7ba48be15b92e244e9a93

Thank you! I had accepted this as something I would just have to deal with. Never would have known how to fix it!

over 1 year ago ·