fix: using glide in order to build with stable deps and avoid dramas like #201, #202 and #203

This commit is contained in:
evilsocket 2018-03-23 15:17:50 +01:00
parent 7116b3cc09
commit 49c65021ea
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 130 additions and 13 deletions

View file

@ -225,19 +225,10 @@ func (s *Session) setupReadline() error {
}
cfg := readline.Config{
HistoryFile: history,
InterruptPrompt: "^C",
EOFPrompt: "exit",
HistorySearchFold: true,
AutoComplete: readline.NewPrefixCompleter(pcompleters...),
FuncFilterInputRune: func(r rune) (rune, bool) {
switch r {
// block CtrlZ feature
case readline.CharCtrlZ:
return r, false
}
return r, true
},
HistoryFile: history,
InterruptPrompt: "^C",
EOFPrompt: "exit",
AutoComplete: readline.NewPrefixCompleter(pcompleters...),
}
s.Input, err = readline.NewEx(&cfg)