arrow keys are not functional in sqlplus

后端 未结 2 544
醉酒成梦
醉酒成梦 2021-02-01 01:54

I find that the arrow keys don\'t work on the sqlplus console. For example if I press left arrow key, it shows like

SQL>^[[B

Does any soluti

2条回答
  •  轮回少年
    2021-02-01 02:30

    As Johnny suggested, you can install the rlwrap utility to manage command history for any other command, including sqlplus. Another useful trick is to alias the wrapped version of sqlplus so you don't have to type rlwrap sqlplus every time.

    alias sqlplus="rlwrap sqlplus"
    

提交回复
热议问题