Reset colour

This commit is contained in:
Jimmy 2021-09-21 11:32:37 +12:00
parent dbe6362fc7
commit 119251c799
1 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ import (
)
func main() {
log.Println("\033[32mStarting Server")
log.Println("\033[32mStarting Server\033[0m")
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGTERM)
@ -42,7 +42,7 @@ func main() {
if _, err := os.Stat("/server/"+jar); os.IsNotExist(err) {
log.Println("\033[31mJar \"" + jar + "\" not found")
log.Println("\033[31mJar \"" + jar + "\" not found\033[0m")
os.Exit(1)
}
@ -74,7 +74,7 @@ func main() {
go func() {
sig := <-sigs
if sig == syscall.SIGTERM {
fmt.Println("\033[31mStopping server")
fmt.Println("\033[31mStopping server\033[0m")
tty.WriteString(stop + "\n\r")
}
}()
@ -95,7 +95,7 @@ func main() {
}()
cmd.Wait()
tty.Write([]byte("\033[31mServer Stopped"))
tty.Write([]byte("\033[31mServer Stopped\033[0m"))
os.Exit(0)
}