When I press up/down, I should get – just like unix – the previous commands, but instead I get:
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.
(I press ‘Up’ arrow key to get the ‘listing’ command back.. then..)
3 ?- **^[[A**
I compiled from source without any additional ‘configure’, or ‘make’ parameters.
In previous version of swi-prolog, I found this worked haphazardly.. sometimes the console got itself in a mess, and I had to press ‘.’ to force it to terminate the current line, then the history would start working again.
But this latest version.. nada.. I am using ubuntu linux, bash shell. It feels like an o.s. environment issue, or a bug in swi-prolog. The arrow keys/history works fine at the linux level.