I have recently installed Singular 4.0.1. However now the arrow keys in terminal return [[A^[[B^[[D^[[C.
This only occurs in Singular 4.0.1 and not in Singular 3 - 1 -5 nor in the terminal when Singular 4.0.1 is running.
How can I fix this?
Please check the build option of your Singular version
(either by starting it as Singular -v or via system("with"); from within Singular).
In the 3rd line it should mention "static readline" and not "fgets":
If fgets is mentioned, please tell us the exact version and OS your are using:
Singular needs to be rebuild to fix it.
On the other side, if readline is mentioned, your terminal type is not recognized
(try system ("getenv","TERM");) - it depends on your OS/terminal etc.
Yes it is fgets:
Singular for x86_64-Linux version 4.0.1 (4011, 64 bit) Nov 4 2014 17:25:02 #e3881ef
with
GMP(5.1.2),NTL(6.1.0),FLINT(2.4.4),factory(@(#) factoryVersion = 4.0.1),
fgets,Plural,DBM,
dynamic modules,dynamic p_Procs,OM_NDEBUG,SING_NDEBUG,CC:OPTIMIZE,eigenvalues,Gauss-Manin system,random=1415450541
built-in modules: {}
I use fedora 3.14.7-200.fc20.x86_64.
Just checked: the official binaries are built with readline.
For you it means that during the configure readline library or include files are not found:
please install them via
"yum install readline-devel -y"
and run ./configure and make again.