Does CLISP have history facilities? For instance, if I typed
> (load "foo.lsp")
five prompts ago, can I tell CLISP something to be able to
use arrow keys or the like to get that instruction again?
Thanks,
-- Xavier
The arrow keys work perfectly well for me in version 1999-01-08 under
Linux. I don't need to do anything special, either.
--Lars M
: The arrow keys work perfectly well for me in version 1999-01-08 under
: Linux. I don't need to do anything special, either.
Thanks.
It's a bit strange, arrow keys do nothing in my version 11-12-1998
(I downloaded it few days ago) under (a DOS box of) Win98...
Also, I am not able to modify my current command line using
the left-right arrows and inserting-deleting text in the
middle of the line because left-right arrows do nothing.
I have to use the backspace key until the character to be
changed and then rewrite the rest!
I have no clue what can be happening. The interpreter itself
works fine.
C:\WINDOWS\COMMAND\DOSKEY /INSERT
in your autoexec.bat file.
: You probably need
:
: C:\WINDOWS\COMMAND\DOSKEY /INSERT
:
: in your autoexec.bat file.
Thanks, but it doesn't work. That line gives history in the
DOS prompt but it doesn't within CLISP. In fact, the same
feature in MAPLE for DOS is enabled without the needing of
any additional explicitly-invoked program.
> * F. Xavier Noria
> |
> | Does CLISP have history facilities? For instance, if I typed
> |
> | > (load "foo.lsp")
> |
> | five prompts ago, can I tell CLISP something to be able to
> | use arrow keys or the like to get that instruction again?
>
> The arrow keys work perfectly well for me in version 1999-01-08 under
> Linux. I don't need to do anything special, either.
It was probably linked with GNU readline, which provides this
functionality.
Jon
> Also, I am not able to modify my current command line using
> the left-right arrows and inserting-deleting text in the
> middle of the line because left-right arrows do nothing.
Try these keystrokes:
^A beginning of line
^E end of line
^B move left one character
^F move right one character
^P previous command in the command history
^N next command in the command history
Paolo
--
Paolo Amoroso <amo...@mclink.it>
: > Also, I am not able to modify my current command line using
: > the left-right arrows and inserting-deleting text in the
: > middle of the line because left-right arrows do nothing.
:
: Try these keystrokes:
:
: ^A beginning of line
: ^E end of line
: ^B move left one character
: ^F move right one character
: ^P previous command in the command history
: ^N next command in the command history
Many thanks Paolo, but they doesn't have that behaviour in my
CLISP session. What I obtain is a handful of funny characters.
Alt-whatever doesn't work either.
yes, but it's a compile-time option. if you do not have it compiled-in,
you don't get the feature. it also cannot be loaded into CLISP
I wonder why you behave as if it is your right to edit command line and
you have been violated. use Emacs as your "command-line" instead.
#:Erik
--
@1999-07-22T00:37:33Z -- pi billion seconds since the turn of the century
: I wonder why you behave as if it is your right to edit command line and
: you have been violated.
Hmmm... it's just not the case. I only ask if it has that feature.
Some people say that they have it and I'm just trying to figure out
why it doesn't work in my CLISP. Of course, because if I _could_
have history I _would_ like to use it.
Perhaps the answer comes from your former remark: if history is a
compile-time option, I think the binaries I downloaded are likely to
have been compiled without that feature.
Thank you,
-- Xavier
On Tue, 15 Jun 1999 05:58:12 GMT, f...@retemail.es (F. Xavier Noria)
wrote:
> Perhaps the answer comes from your former remark: if history is a
> compile-time option, I think the binaries I downloaded are likely to
> have been compiled without that feature.
If history is a compile-time option, I think the world was compiled
with
--max_history_size=8K --precision:low --persistent:no --cyclic:yes
/L/e/k/t/u
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2i
iQA/AwUBN2YCv/4C0a0jUw5YEQI3rwCgt2R9o04J1RQ+sFVyY+CklhvfmDcAoJcb
5nSDV9AqcuCGdKzsjvQL3dgR
=Z4wE
-----END PGP SIGNATURE-----
The console (DOS box) under WinNT has history and cut&paste. The console
under Win95/98 does not. This is entirely in Microsoft's responsibility.
The adventurous can install Cygwin32-b18 from ftp.cygnus.com and then use
the precompiled CLISP binary at
ftp://ftp2.cons.org/pub/lisp/clisp/binaries/cygwin32/
It has readline. But be warned that:
- Cygwin32-b18 was still a bit flaky,
- These binaries are from 1997,
- They are slow and use Unix style pathnames with forward slashes.
The even more adventurous can install the newest Cygwin20.1 and the newest
clisp source and compile it him/herself, including readline. It will be
more stable than Cygwin32-b18, and certainly faster as well.
Bruno http://clisp.cons.org/~haible/