Closed sevk closed 10 years ago
None of them? Which? What is the error output?
when input some something :
form_get_wch.rb:76:in <main>': undefined method
form_driver_w' for Ncurses::Form:Module (NoMethodError)
press 'q' can't quit . I think it is because 'a'[0] == 'a' in ruby2.0 .
tclock.rb:51:in `mvaddch': no implicit conversion of String into Integer (TypeError) also , 'a'[0] == 'a' in ruby2.0 .
read_line.rb:36:in `block in read_line': bad value for range (ArgumentError)
Please try out #20. The reason form_driver_w doesn't work is because you need a development version of ncurses with the new form_driver_w routine defined.
This fix possibly breaks, the deprecated, ruby 1.8 support.
if RUBY_VERSION < '1.9'
class Fixnum
def ord
self
end
end
end
for both 1.8 1.9 2.0 all work ok , use this ?
If it already works with 1.9 and 2.0 I think that is ok. There is no reason to clutter the examples to make 1.8 work.
Fixed in #20.
ncursesw-ruby/tree/master/examples
examples did not work on ruby2.0