aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/color/terminal.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/data/color/terminal.lux24
1 files changed, 12 insertions, 12 deletions
diff --git a/stdlib/source/library/lux/data/color/terminal.lux b/stdlib/source/library/lux/data/color/terminal.lux
index 06c23c6b3..715e30961 100644
--- a/stdlib/source/library/lux/data/color/terminal.lux
+++ b/stdlib/source/library/lux/data/color/terminal.lux
@@ -16,8 +16,8 @@
["[0]" template]]
[type
["[0]" nominal]]]]]
- ["[0]" // (.only Color)
- ["[0]" rgb]])
+ [//
+ ["[0]" rgb (.only RGB)]])
(nominal.def .public Command
[Text Text]
@@ -86,16 +86,16 @@
(with_template [<command> <name> <reset>]
[(def .public (<name> it)
- (-> Color Command)
- (let [it (//.rgb it)]
- (|> [(%.format ..command
- <command>
- ";" (%.nat (the rgb.#red it))
- ";" (%.nat (the rgb.#green it))
- ";" (%.nat (the rgb.#blue it))
- "m")
- <reset>]
- (nominal.abstraction Command))))]
+ (-> RGB
+ Command)
+ (|> [(%.format ..command
+ <command>
+ ";" (%.nat (the rgb.#red it))
+ ";" (%.nat (the rgb.#green it))
+ ";" (%.nat (the rgb.#blue it))
+ "m")
+ <reset>]
+ (nominal.abstraction Command)))]
["38;2" foreground ..default_foreground_color]
["48;2" background ..default_background_color]