Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C
PostPosted: 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?


Report this post
Top
  
Reply with quote  
 Post subject: Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C
PostPosted: Fri Nov 07, 2014 11:32 am 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C
PostPosted: 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.


Report this post
Top
  
Reply with quote  
 Post subject: Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C
PostPosted: Mon Nov 10, 2014 3:40 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Arrow keys in Singular terminal: [[A^[[B^[[D^[[C
PostPosted: Mon Nov 17, 2014 2:31 pm 
It worked. Thank you!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:05 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group