Does someone know what I need to do to set the arrow keys (and in fact the other keys) on Linux? When I load abcl.jar into an xterm window the arrow keys don't respond correctly:

Armed Bear Common Lisp 0.12.0
Java 1.6.0 IBM Corporation
Low-level initialization completed in 0.718 seconds.
Startup completed in 2.411 seconds.
Type ":help" for a list of available commands.
CL-USER(1): ^[[A^[[C^[[B^[[D

Up, right, down and left are shown above. I used java -jar abcl.jar to launch this.

(Of course this all works fine in Windows, but I'm not an X wizz, so I don't know if this is straight forward or not.)

f you run abcl.jar under Windows it all works fine. By that I mean the arrow keys work as expected at the command prompt (CMD.EXE), and once you've started ABCL (java -jar abcl.jar) the Lisp prompt lets you move in each direction, with left and right moving along the current line, and up getting the previous command in the history, and down getting the next command.

Now within Linux I can start an xterm session. I don't use any options. The TERM variable is set to xterm, which is what I expect. At the command prompt I can use left and right to move around the current command, and up and down to navigate the command history of the shell.

When I start ABCL as in Windows, the benefits I had from the command line now disappear. I assume this is because within the Java code it does not handle the key commands as shown in my previous post (ESC-A, ESC-B, etc).

Trawling through the Java code it seems that the command prompt is run using Lisp code (top-level.lisp). Does this mean the error is within the Lisp code or the Java code?