On Fri, Dec 05, 2008 at 07:24:47AM +0100, Alexander Burger wrote:
> What remains is the nasty feature that readline() does not obey the
> line's starting column. It should start at column 2 (because PicoLisp
> issues its own prompt ": ").
OK, found it!
Here is th
Lab. Alexander Burger
(load "lib/gcc.l")
(gcc "readline" '("-lreadline") '_led)
#include
#include
any _led(any ex __attribute__((unused))) {
char *p = readline("");
any x = mkStr(p);
add_history(p);
free(p);
return x;
}
/**/
#
Hi Boh Yap,
> On Mac OSX, it had problems locating the readline libs. Finally solved that
> by providing the correct path to PATH. (my readline was in
> '/usr/local/lib/readline/').
Another possibility might be to include it into the evironment variable
LD_LIBRARY_PATH. Str
hi Alex,
thanks for your prompt reply and help.
Tried the solution below, but it gave me errors:
Had a few problems with readline.l, on OS X. Posting here in case someone else
needs help.
On Mac OSX, it had problems locating the readline libs. Finally solved that
by providing the correct path
Hi all,
Boh Yap asked me a few days ago about using readline() with PicoLisp.
(He now also subscribed to this list. Welcome, Boh Yap!)
I had never bothered about readline(), as I felt perfectly comfortable
with "lib/led.l". But, on the other hand, just having an incomplete 'vi