Clojure REPL readline喜欢支持 [英] Clojure REPL readline like support

查看:151
本文介绍了Clojure REPL readline喜欢支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个REPL(像ruby的 irb )有一些非常有用的功能,例如使用箭头键来倒转和转发命令历史;但是当我尝试做同样的Clojure,它只打印垃圾(我怀疑它打印键码)。如何在Clojure REPL中获得此功能?

Several REPLs (like ruby's irb) have some very useful features, such as using the arrow keys to "rewind" and "forward" the command history; but when I try to do the same with Clojure, it only prints garbage (I suspect it prints the keycode). How can I get this feature in the Clojure REPL?

推荐答案

您需要使用 JLine rlwrap 。请参阅 http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started#Enhancing_the_Environment

You need to use JLine or rlwrap. Refer to http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started#Enhancing_the_Environment for assistance

这篇关于Clojure REPL readline喜欢支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆