up,down,left and right cannot be used when using SWI-Prolog in terminal

北城以北 提交于 2019-12-24 15:19:35

问题


I met a problem when I use prolog(swipl), after I type swipl in the terminal, code like '^[[A^[[B^[[D^[[C' shows when I press up, down, left, and right on my keyboard. Could somebody explain why? and how to fix it. Thanks in advance!


回答1:


This means the readline/editline functionality isn't working. If you built it yourself, you probably have to install the development version of one of those libraries first and then rebuild. Or you can install rlwrap and do rlwrap swipl (which is helpful for other commands as well).



来源:https://stackoverflow.com/questions/55144088/up-down-left-and-right-cannot-be-used-when-using-swi-prolog-in-terminal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!