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.

1

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.