Покрасил буковы, правда красивые?

This commit is contained in:
B4D_US3R 2024-08-04 05:08:10 +05:00
parent 49a3e1ace3
commit 89575b6c30

11
main.go
View file

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