Allow for more changable terminal screen colors

This commit is contained in:
2024-11-17 10:18:04 +00:00
parent a0431ff9a3
commit e7ea5d7fa9
11 changed files with 232 additions and 207 deletions
+13
View File
@@ -0,0 +1,13 @@
module Dodge.Terminal.Color (
termScreenColor,
) where
import Dodge.Data.Terminal
import Color
import Control.Lens
termScreenColor :: Terminal -> Maybe Color
termScreenColor tm = case tm ^. tmStatus of
TerminalOff -> Nothing
TerminalReady -> Just green
TerminalBusy -> Just white