support for readline


To ng-spice@ieee.ing.uniroma1.it, ng-spice-devel@ieee.ing.uniroma1.it
From routoure Jean-Marc <routoure@greyc.ismra.fr>
Date Wed, 4 Apr 2001 19:15:59 +0200
Delivered-To mailing list ng-spice-devel@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-devel-help@ieee.ing.uniroma1.it; run by ezmlm
Organization GREYC -ISMRA
Reply-To ng-spice-devel@ieee.ing.uniroma1.it

Hi,

I finally have some time to try to use the patch for spice3f4 to support gnu
readline in ng-spice14pre2.

I test it a little bit and it seems to work(see BUGS). I attach the patches 
as a
tgz file


To install : 

untar the patch.tgz file in the ngspice14pre2 root directory

It will created the following files : 

./src/frontend/plotting/x11.patch
./src/frontend/com_history.patch
./src/frontend/misccoms.patch
./src/frontend/signal_handler.patch
./src/include/ngspice.patch
./src/main.patch

patch all this file :
cd src
patch main.c main.patch
cd frontend
...



Note : the ngspice.h is modified to define the preprocessor variable
HAS_GNUREADLINE. This should be done in the configure.in file but I do not 
know
how to do that. As a consequence, you will have to edit the Makefile in the 
src
directory and modify the LIBS as : 

LIBS = -lm -lncurses -lreadline  -L/usr/lib/termcap -ltermcap 
-L/usr/X11R6/lib -
lX11 -lXt -lXext -lXaw -lXmu  -lSM -lICE

BUGS : ngspice core dumps when you directly type the name of a circuit
instead of using the source commands. 

good luck

Regards

JMR




patch.tgz


Partial thread listing: