3

I'm not sure if this is possible and, chances are, it isn't but is there any way to have a clickable button in a ruby command line?

I mean, if you run a ruby script in the Ruby command line, can you have an area of the window be clickable and have something executed when it's clicked?

I've been looking around for answers but so far, only Ruby on Rails and website solutions have come up.

Thanks in advance for any help and answers.

notsoscottishscot
  • 350
  • 1
  • 4
  • 11
  • Maybe this helps: https://stackoverflow.com/questions/21445664/make-a-ruby-script-with-text-io-double-clickable-executable-file – iGian Sep 01 '18 at 10:00

1 Answers1

0

I think most people who desire this functionality via terminal end up utilizing the ncurses library. check this Gem out for using ncurses with Ruby: https://github.com/ruby/curses

Zach Tuttle
  • 2,165
  • 1
  • 14
  • 17