如果我在 irb 中进行反向交互式搜索,然后输入一个控制字符(箭头键是我实际看到的唯一一个)。所以我从这次会议开始:
$ irb
>> print "hello"
hello
然后输入^r
,h
$ irb
>> print "hello"
hello
(reverse-i-search)`he': print "hello"
到目前为止,一切都很好。然后我点击了左箭头,我最终得到了这个:
$ irb
>> print "hello"
hello
>> print "[Dhello"
随后使用箭头可以正常移动光标。