Why do my arrow keys not work in irb on iterm2


The arrow keys work fine in iTerm2 in general, but break in irb. Instead of working as arrow keys, they get escaped as ^[[D, ^[[C, etc.