cooler prompt

This commit is contained in:
evilsocket 2018-01-08 10:19:44 +01:00
commit d268bd9288

View file

@ -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()
}