examples/tclock.rb in ncursesw-1.2.4.3 vs examples/tclock.rb in ncursesw-1.4.0.0

- old
+ new

@@ -1,8 +1,8 @@ #!/usr/bin/env ruby -# $Id: tclock.rb,v 1.6 2002/02/28 13:50:10 t-peters Exp $ +# $Id: tclock.rb,v 1.6 2002-02-28 13:50:10 t-peters Exp $ # tclock - analog/digital clock for curses, translated to ruby # Copyright (C) 2002 Tobias Peters <t-peters@users.berlios.de> # This file was adapted from the C program tclock.c from the ncurses # distribution, which bears the following copyright statement: @@ -28,10 +28,10 @@ ########################################################################### # The translation of this program to ruby is a modification and is hereby # # clearly marked as such. # ########################################################################### -require "ncurses" +require "ncursesw" PI = Math::PI def sign(_x) (_x<0?-1:1) end