Control characters in ruby

A

Arun Kumar

Hello all,
I wanted to know how to accept control characters such as ESC, F1,
F2 from a command line in Ruby. I'm working on Opensuse (11.1) Linux.

--
Cheers & Regards,
Arun Kumar M S
Systems Engineer,
AVK systems,
IIIT-B campus,
Electronic city,
Bangalore
www.avksystems.com
 
U

Urabe Shyouhei

Thank you so much. The solution for my case lies in ncurses or related
libraries (rbcurse, ffi-ncurses)...

FYI ruby has standard library support for curses. I don't know if Suse ships
their ruby with that feature compiled in but I'm sure they have it somewhere
in their package system.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,811
Messages
2,569,693
Members
45,476
Latest member
CoreyOddo

Latest Threads

Top