summaryrefslogtreecommitdiffstats
path: root/virtual-programs/errors.folk
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2023-10-25 22:59:10 +0000
committerGitHub <noreply@github.com>2023-10-25 22:59:10 +0000
commit97852cd052e5f152337873ccf8f92d2eb8e8e88f (patch)
treed6d2072fddebc8830b21af043a4051c6ea5fc241 /virtual-programs/errors.folk
parentFolk programs for charles' folk (diff)
parenttext: Try using Tcl objects in text shaping to prevent conversion (diff)
downloadfolk-97852cd052e5f152337873ccf8f92d2eb8e8e88f.tar.gz
folk-97852cd052e5f152337873ccf8f92d2eb8e8e88f.zip
Merge pull request #103 from FolkComputer/osnr/multiple-on-process-blocks
Refactor display into multiple programs; make shaders available from userland; run code on subprocesses
Diffstat (limited to 'virtual-programs/errors.folk')
-rw-r--r--virtual-programs/errors.folk10
1 files changed, 9 insertions, 1 deletions
diff --git a/virtual-programs/errors.folk b/virtual-programs/errors.folk
index 28028710..32e34e73 100644
--- a/virtual-programs/errors.folk
+++ b/virtual-programs/errors.folk
@@ -6,6 +6,14 @@ When /p/ has error /err/ with info /info/ {
Wish $p is outlined red
}
}
-
Wish $p is titled $err
}
+
+When /p/ has warning /w/ with info /info/ {
+ When the clock time is /t/ {
+ if {[expr {(int($t * 5)) % 2}] != 1} {
+ Wish $p is outlined yellow
+ }
+ }
+ Wish $p is titled $w
+}