Java 8 Nashorn: Console pretty unusable

泪湿孤枕 提交于 2019-12-03 01:51:58
jbandi

Thanks to @assylias for pointing me to rlwrap.

I installed rlwrap via homebrew:

brew install rlwrap

Then I defined an alias in my .zshrc (would be the same for bash in .bashrc)

alias jjs='rlwrap /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/jjs'

Now I can use jjs on the commandline and the <- and -> keys are working as expected.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!