We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7f87f7 + 473e82a commit af0f601Copy full SHA for af0f601
1 file changed
examples/console/colors.own
@@ -0,0 +1,26 @@
1
+use "std"
2
+for b : range(8)
3
+ print sprintf(" 4%dm ", b)
4
+println ""
5
+for f : range(30, 38) {
6
+ for s : ["", "1;"] {
7
+ print sprintf("%4sm", s+f)
8
+ print sprintf(" \u001B[%sm%s\u001B[0m", s+f, "gYw ")
9
+ for b : range(8)
10
+ print sprintf(" \u001B[4%s;%sm%s\u001B[0m", b, s+f, " gYw ")
11
+ println ""
12
+ }
13
+}
14
+
15
+/*use "functional"
16
+stream(range(30, 38))
17
+ .flatMap(def(f) = [[f, ""], [f, "1;"]])
18
+ .forEach(def(a) {
19
+ extract(f, s) = a
20
21
22
23
24
25
+ })
26
+*/
0 commit comments