eclubb / ncurses-ruby

A Ruby module for accessing the ncurses library
https://github.com/eclubb/ncurses-ruby
Other
131 stars 29 forks source link

Make tclock example work on ruby 1.9 #3

Closed jeremyevans closed 12 years ago

jeremyevans commented 12 years ago

Ruby 1.9 has String[Integer] return single character string, not ascii character code integer. With this change it works in both ruby 1.8 and 1.9.