Singular
https://www.singular.uni-kl.de/forum/

Arrow keys in Singular terminal: [[A^[[B^[[D^[[C
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2468
Page 1 of 1

Author:  Simon89 [ Thu Nov 06, 2014 11:41 am ]
Post subject:  Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

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?

Author:  hannes [ Fri Nov 07, 2014 11:32 am ]
Post subject:  Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

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.

Author:  simon89 [ Sat Nov 08, 2014 2:51 pm ]
Post subject:  Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

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.

Author:  hannes [ Mon Nov 10, 2014 3:40 pm ]
Post subject:  Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

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.

Author:  simon89 [ Mon Nov 17, 2014 2:31 pm ]
Post subject:  Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C

It worked. Thank you!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/