summary refs log tree commit diff stats
path: root/code/screensaver
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-05-09 00:00:00 +0200
committerhut <hut@lavabit.com>2009-05-09 00:00:00 +0200
commita0de7f95bc7525b99b2c2e16f566e0ee367e9c3c (patch)
tree62d1cdf9523f4e8fad28ca7df0e1d696c991d2db /code/screensaver
parent34bfb32ecf2cea5e5de95980beedb681139d9c01 (diff)
downloadranger-0.2.1.tar.gz
lots of changes. version 0.2.1 v0.2.1
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