mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
cooler prompt
This commit is contained in:
parent
aa48e80cae
commit
d268bd9288
1 changed files with 8 additions and 1 deletions
|
@ -204,7 +204,14 @@ func (s *Session) Start() error {
|
|||
}
|
||||
|
||||
func (s *Session) ReadLine() (string, error) {
|
||||
s.Input.SetPrompt("cap@" + core.GREEN + s.Interface.CIDR() + core.RESET + "» ")
|
||||
prompt := FG_WHITE + BG_YELLOW + " " + s.Interface.CIDR() +
|
||||
FG_BLACK +
|
||||
" > " +
|
||||
s.Interface.IpAddress +
|
||||
" " + core.RESET +
|
||||
BOLD + " » " + RESET
|
||||
|
||||
s.Input.SetPrompt(prompt)
|
||||
s.Input.Refresh()
|
||||
return s.Input.Readline()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue