有没有运行与标签完成rlwrap禁用的方法吗? [英] is there a way of running rlwrap with tab completion disabled?
问题描述
我想用一个自定义的Erlang REPL使用rlwrap。
I want to use rlwrap with a custom erlang repl.
它完美,如果我跑它作为rlwrap -a myrepl。
It works perfectly if I run it as "rlwrap -a myrepl".
问题是,myrepl具有得到由rlwrap践踏内置选项卡完成。
The problem is that myrepl has builtin tab completion which gets trampled by rlwrap.
我要让rlwrap释放TAB键
I want to make rlwrap to release the TAB key
推荐答案
您不能使用的行编辑/历史,同时您REPL的TAB完成 rlwrap
时间。
You can't use rlwrap
's line editing/history and your repl's TAB completion at the same time.
rlwrap
提供行编辑,历史和(很简单)命令补全的没有它的。有花哨的东西tab键完成的命令应该不需要 rlwrap
来完成其行编辑,应该吗?
rlwrap
provides line editing, history and (very simple) completion for commands that don't have it. A command that has something as fancy as TAB completion shouldn't need rlwrap
to do its line editing, should it?
的 -a
( - 永远的readline
)的选择是的替代相当粗暴的方式的rlwrap对你的命令行编辑行为。它主要用于那些有一个非常简单的行编辑器,无需例如命令命令历史记录
The -a
(--always-readline
) option is a rather crude way to substitute rlwrap's line editing behaviour for that of your command. It is primarily meant for commands that have a very simple line editor, without e.g. command history
如果你想使用 -a
选项,因为您preFER rlwrap
的花哨(如持续的历史,或彩色提示)添加到您的命令的(如TAB完成)后,继续前进,但它是不可能挑一的一些花哨和保留一些其他的。
If you want to use the -a
option because you prefer rlwrap
's fanciness (like persistent history, or coloured prompts) to your command's (like TAB completion), go ahead, but it is impossible to pick some fanciness of one and keep some of the other.
这是(小)价格程序(及其用户)必须支付避免的readline
库,其附带的GPL许可证。
This is the (small) price programs (and their users) have to pay for avoiding the readline
library and the GPL license that comes with it.
汉斯( rlwrap
的作者)
这篇关于有没有运行与标签完成rlwrap禁用的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!