Покрасил буковы, правда красивые?
This commit is contained in:
parent
49a3e1ace3
commit
89575b6c30
1 changed files with 6 additions and 5 deletions
11
main.go
11
main.go
|
@ -110,11 +110,12 @@ func main() {
|
||||||
|
|
||||||
user := GetUser()
|
user := GetUser()
|
||||||
hostname := GetHostname()
|
hostname := GetHostname()
|
||||||
|
ansiColor := GetAnsiColor()
|
||||||
|
|
||||||
fmt.Printf("%v@%v\n", user, hostname)
|
fmt.Printf("%v@%v\n", user, hostname)
|
||||||
fmt.Printf("\033[%vm%v\033[0m\n", GetAnsiColor(), GenBreaker(user, hostname))
|
fmt.Printf("\033[%vm%v\033[0m\n", ansiColor, GenBreaker(user, hostname))
|
||||||
fmt.Printf("OS:\t%v\n", GetOsInfo())
|
fmt.Printf("\033[%vmOS\033[0m:\t%v\n", ansiColor, GetOsInfo())
|
||||||
fmt.Printf("KERNEL:\t%v", GetKernelVersion())
|
fmt.Printf("\033[%vmKERNEL\033[0m:\t%v", ansiColor, GetKernelVersion())
|
||||||
fmt.Printf("SHELL:\t%v\n", GetShell())
|
fmt.Printf("\033[%vmSHELL\033[0m:\t%v\n", ansiColor, GetShell())
|
||||||
fmt.Printf("UPTIME:\t%v\n", GetUptime())
|
fmt.Printf("\033[%vmUPTIME\033[0m:\t%v\n", ansiColor, GetUptime())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue