mirror of
https://github.com/bettercap/bettercap
synced 2025-07-08 05:51:37 -07:00
This commit is contained in:
parent
7116b3cc09
commit
49c65021ea
4 changed files with 130 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue