From a0de7f95bc7525b99b2c2e16f566e0ee367e9c3c Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 9 May 2009 00:00:00 +0200 Subject: lots of changes. version 0.2.1 --- code/screensaver/clock.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 code/screensaver/clock.rb (limited to 'code/screensaver') 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 -- cgit 1.4.1-2-gfad0