ruby / curses

Ruby binding for curses, ncurses, and PDCurses. Formerly part of the ruby standard library.
Other
296 stars 34 forks source link

uninitialized constant BUTTON1_CLICKED (NameError) #54

Closed illtellyoulater closed 4 years ago

illtellyoulater commented 4 years ago

I'm trying to run the example at https://github.com/ruby/curses/blob/master/sample/mouse.rb and I'm getting this error:

test-curses.rb:29:in <main>: uninitialized constant BUTTON1_CLICKED (NameError)

I'm on Ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32] running on Windows 10.

shugo commented 4 years ago

Unfortunately, It seems that the feature is not supported on mingw32(PDCurses).

illtellyoulater commented 3 years ago

@shugo I see, but I think it should be supported with ncurses, right? I've discontinued my project but if I need something like this again I will try with gem install curses -- --use-system-libraries and see what happens. Thank you!