summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cm.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/cm.lua b/cm.lua
new file mode 100644
index 0000000..faabea6
--- /dev/null
+++ b/cm.lua
@@ -0,0 +1,7 @@
+-- clear all monitors
+local ms = peripheral.find"monitor"
+for _,m in ipairs(ms) do
+ m.setPaletteColor(colors.black, 0, 0, 0)
+ m.setBackgroundColor(colors.black)
+ m.clear()
+end