Read-only forum archive

Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

Simon89 · Thu Nov 06, 2014 11:41 am

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?

Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

hannes · Fri Nov 07, 2014 11:32 am

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.

Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

simon89 · Sat Nov 08, 2014 2:51 pm

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.

Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

hannes · Mon Nov 10, 2014 3:40 pm

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.

Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

simon89 · Mon Nov 17, 2014 2:31 pm

It worked. Thank you!