当我按下上/下时,我应该得到 - 就像 unix 一样 - 以前的命令,但我得到:
Welcome to SWI-Prolog (Multi-threaded, 32 bits, Version 6.0.0)
Copyright (c) 1990-2011 University of Amsterdam, VU Amsterdam
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
1 ?- ['nc'].
% nc compiled into nc 0.00 sec, 84 clauses
true.
2 ?- listing.
true.
(我按“向上”箭头键以返回“列表”命令..然后..)
3 ?- **^[[A**
我从源代码编译,没有任何额外的“配置”或“制作”参数。
在以前版本的 swi-prolog 中,我发现这个工作很随意.. 有时控制台把自己弄得一团糟,我不得不按“。” 强制它终止当前行,那么历史将再次开始工作。
但是这个最新版本.. nada.. 我使用的是 ubuntu linux,bash shell。感觉像是操作系统环境问题,或者 swi-prolog 中的错误。箭头键/历史在 linux 级别上运行良好。