sup-heliotrope / ncursesw-ruby

Ruby bindings to the ncursesw library (modified from: http://ncurses-ruby.berlios.de/)
GNU Lesser General Public License v2.1
22 stars 13 forks source link

Fix #19: Make examples work on ruby 1.9 and 2.0 #20

Closed gauteh closed 10 years ago

yabuki commented 10 years ago

@gauteh I’d like to reopen. Because, read_line.rb can not get enter key code.

in read_line.rb

    when Ncurses::KEY_ENTER, ?\n, ?\r
      return string, cursor_pos, ch # Which return key has been used?

I pushed enter key, sample program never reach above code. Please check it.

gauteh commented 10 years ago

@yabuki: take a look at #21. Note that these examples are very rudimentary - if you fix them up please submit so that we can include them.