aboutsummaryrefslogtreecommitdiff
path: root/lib/consolecolor.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-17 23:37:20 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-17 23:37:26 -0700
commit88df5c72a317cc011f221627a2c3082078237cc1 (patch)
treea0e983d6aa356dbcd7ec2f71378c3b796e960ac3 /lib/consolecolor.nom
parentaf441330ff7cfdc466281ce135ca7231ec54c499 (diff)
Updating lib to v2
Diffstat (limited to 'lib/consolecolor.nom')
-rw-r--r--lib/consolecolor.nom18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/consolecolor.nom b/lib/consolecolor.nom
index 3e325d6..a320b03 100644
--- a/lib/consolecolor.nom
+++ b/lib/consolecolor.nom
@@ -1,20 +1,20 @@
-#!/usr/bin/env nomsu -V1
+#!/usr/bin/env nomsu -V2.2.4.3
#
This file defines actions for ANSI console color escape codes.
use "core"
-test: bright: "\(green)Color test passed."
+test: bright "\(green)Color test passed."
%colors <- {..}
- normal:0, "reset color":0, bright:1, bold:1, dim:2, italic:3, underscore:4
- "slow blink":5, "fast blink": 6, reverse:7, inverse:7, inverted:7, hidden:8
+ normal: 0, "reset color": 0, bright: 1, bold: 1, dim: 2, italic: 3, underscore: 4
+ "slow blink": 5, "fast blink": 6, reverse: 7, inverse: 7, inverted: 7, hidden: 8
# There's some other codes, but they're not currently implemented
- black:30, red:31, green:32, yellow:33, blue:34, magenta:35, cyan:36, white:37
- "on black":40, "on red":41, "on green":42, "on yellow":43, "on blue":44
- "on magenta":45, "on cyan":46, "on white":47
+ black: 30, red: 31, green: 32, yellow: 33, blue: 34, magenta: 35, cyan: 36
+ white: 37, "on black": 40, "on red": 41, "on green": 42, "on yellow": 43
+ "on blue": 44, "on magenta": 45, "on cyan": 46, "on white": 47
-for %name = %colornum in %colors
- with {%escapecode: "\27[\(%colornum)m"}
+for %name = %colornum in %colors:
+ with {%escapecode: "\27[\(%colornum)m"}:
run ".."
#!/usr/bin/env nomsu -V1
compile [\%name] to: Lua value (quote \(quote %escapecode))