Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - TAB Completion ?
Author Message
  Post subject:  Re: TAB Completion ?  Reply with quote
static readline: input via readline, requires libreadline.* and readline.h
uses HAVE_READLINE
emulated readline: input with line editing, requires libtermcap or libncurses
or libcurses, uses HAVE_FEREAD
fgets: input via fgets (if all other fail)
dynamic readline: input via readline if libreadline.so is available at runtime
used HAVE_DYN_RL, will never be set automaically by configure
(it is thought for binary distributions: works also without libreadline.so,
but take advantage of it if possible)
Post Posted: Mon Mar 05, 2012 1:18 pm
  Post subject:  Re: TAB Completion ?  Reply with quote
Can you please explain the difference between all 4? And how it is determined?

I could not trace much. I found variables in Singular/configure called ac_cv_*_readline. However I could not find the place these variables are set!

Also I found the #define's called HAVE_DYN_RL, HAVE_READLINE and FEREAD.


-- VInay
Post Posted: Sun Mar 04, 2012 6:29 am
  Post subject:  Re: TAB Completion ?  Reply with quote
readline is optional.
If it is not found by configure a different way for input is used,
Depending on the existing libraries there are the following possibilities:
static readline, dynamic readline, emulated readline, fgets.
the Singular command
Code:
system("with");
outputs
(beside other tings) the chosen method
Post Posted: Fri Mar 02, 2012 11:02 am
  Post subject:  Re: TAB Completion ?  Reply with quote
Ah! Thanks a lot. The libreadline-dev was the culprit. I didnt notice before compilation that this package was missing.

by the way how come it was not detected by config?

-- VInay
Post Posted: Thu Mar 01, 2012 6:33 pm
  Post subject:  Re: TAB Completion ?  Reply with quote
Install readline (and the development package to readline)
(configure searches for libreadline.a/libreadline.so and readline.h)
Rerun configure and make at least in the subdirectories
Singular and kernel:
Code:
cd Singular
./config.status --recheck
./config.status
cd ../kernel
make install
cd ../Singular
make install
Post Posted: Thu Mar 01, 2012 11:30 am
  Post subject:  TAB Completion ?  Reply with quote
I just now compiled Singular-3-1-4 from source code on Ubuntu-12.04 (development branch), AMD-Athlon Processor server. The compilation was successful. However after compilation I seem to have lost some features of the Singular command window like TAB completion (of command). Further the usual key-strokes like backspace and arrow keys produce their escape characters (e.g. ^H, ^[[A,^[[C, etc). In other words the command window behaves like VT-100 terminal.

Any suggestions?

Thanks in advance.

VInay
Post Posted: Wed Feb 29, 2012 5:48 pm


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