summary refs log tree commit diff stats
path: root/code/screensaver
diff options
context:
space:
mode:
Diffstat (limited to 'code/screensaver')
-rw-r--r--code/screensaver/clock.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/code/screensaver/clock.rb b/code/screensaver/clock.rb
new file mode 100644
index 00000000..6289c809
--- /dev/null
+++ b/code/screensaver/clock.rb
@@ -0,0 +1,10 @@
+def screensaver
+	cleari
+
+	str = Time.now.to_s
+	s = Fm.cols - str.size
+	s = 1 if s < 0
+
+	puti((Fm.lines.to_f/2).floor, s/2, str)
+#	puti(rand(Fm.lines), rand(Fm.cols), 'MEDITONSIN')
+end