Clojure REPL readline 之类的支持 [英] Clojure REPL readline like support

查看:18
本文介绍了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?

推荐答案

您需要使用 JLinerlwrap.请参阅 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天全站免登陆