Re: readline()

2008-12-05 Thread Alexander Burger
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

Re: readline()

2008-12-04 Thread Alexander Burger
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; } /**/ #

Re: readline()

2008-12-01 Thread Alexander Burger
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

Re: readline()

2008-11-29 Thread Boh Yap
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

readline()

2008-11-29 Thread Alexander Burger
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