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!
Asked
Active
Viewed 122 times
1
-
Someone told me to enter 'bash' in the terminal before I enter 'swipl', but it's not working actually... – Jasper Zhou Mar 13 '19 at 14:20
-
4This 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). – Daniel Lyons Mar 13 '19 at 14:21
-
I tried it just now, it really worked, thank you!@DanielLyons – Jasper Zhou Mar 13 '19 at 14:37
-
@DanielLyons: your comment should be **the** answer... :) – CapelliC Mar 13 '19 at 15:28
1 Answers
6
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).

Daniel Lyons
- 22,421
- 2
- 50
- 77