问题描述
我在Mac OS X上使用ccl/openmcl(两者的最新版本).当显示lisp提示时,使用光标键导航当前行会导致转义代码,而不是移动代码,例如:
I'm using ccl/openmcl on Mac OS X. (latest versions of both). When the lisp prompt is displayed, using the cursor keys to navigate the current line results in escape codes, rather than movement, eg:
Welcome to Clozure Common Lisp Version 1.2-r9226-RC1 (DarwinX8664)!
? (^[[D
Welcome to Clozure Common Lisp Version 1.2-r9226-RC1 (DarwinX8664)!
? (^[[D
在这里,我按下(
键,然后按下left cursor
键.
Here I've pressed the (
key, and then the left cursor
key.
当我在Debian Etch框上运行ccl/openmcl时,光标的行为符合预期,并将插入点向左移动一个位置.
When I run ccl/openmcl on a Debian Etch box, the cursor behaves as expected, and moves the insert point one position left.
我猜这是某种终端配置选项?
I guess this is some sort of terminal configuration option?
推荐答案
如果Clozure CL不提供本机readline/editline/任何支持,或配置为不使用它,则可以使用rlwrap运行它,例如:
If Clozure CL doesn't provide native readline/editline/whatever support or is configured not to use it, you can run it with rlwrap, for example:
rlwrap openmcl
可以通过 MacPorts 或直接从 http://utopia.knoware.nl/~hlub/rlwrap/.
rlwrap can be obtained via MacPorts or directly from http://utopia.knoware.nl/~hlub/rlwrap/.
这篇关于如何获得终端程序来使用光标键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!