color icons

This commit is contained in:
2023-04-14 22:39:52 +02:00
parent 89c9022dfe
commit 285d676bfd

View File

@@ -56,7 +56,7 @@ func formatLine(stats *probing.Statistics) {
packetColor = "%{F#d60606}" packetColor = "%{F#d60606}"
} }
fmt.Printf("%%{F-}\uE4E2 %s%dms %%{F-}\uF1B2 %s%d%%\n", rttColor, stats.AvgRtt.Milliseconds(), packetColor, int(math.Round(stats.PacketLoss))) fmt.Printf("%s\uE4E2 %dms %s\uF1B2 %d%%\n", rttColor, stats.AvgRtt.Milliseconds(), packetColor, int(math.Round(stats.PacketLoss)))
} }
func formatLineWaybar(stats *probing.Statistics) { func formatLineWaybar(stats *probing.Statistics) {