         let temperatureSensorName = SMC.Temperature.allValues[key]!
         let temperature           = smc.getTemperature(key).tmp
 
-        let warning = CLIWarnFlag.value ?
-                    "(\(warningLevel(temperature, maxTemperatureCelsius)))" : ""
-        let smcKey = CLIDisplayKeysFlag.value ? "(\(key.rawValue))" : ""
+        let warning = warningLevel(temperature, maxTemperatureCelsius)
+        let level   = CLIWarnFlag.value ? "(\(warning.name))" : ""
+        let color   = CLIColorFlag.value ? warning.color : ANSIColor.Off
+
+        let smcKey  = CLIDisplayKeysFlag.value ? "(\(key.rawValue))" : ""
 
         println("\(temperatureSensorName) \(smcKey)")
-        println("\t\(temperature)°C \(warning)")
+        println("\t\(color.rawValue)\(temperature)°C \(level)" +
+                                                    "\(ANSIColor.Off.rawValue)")
     }
 }
 

                helpMessage: "Show SMC keys when printing temperature sensors.")
let CLIWarnFlag        = BoolOption(shortFlag: "w", longFlag: "warn",
                                    helpMessage: "Show warnings for stats.")
let CLIFanNumberFlag   = IntOption(shortFlag: "n", longFlag: "fan-number",
                  required: false, helpMessage: "The number of the fan to set.")
let CLIFanSpeedFlag    = IntOption(shortFlag: "s", longFlag: "fan-speed",

}

func checkKey(key: String) {
    if smc.isKeyValid(key).valid { println("VALID")   }
    else                         { println("INVALID") }
}

