From: "R.. Kumar 1.9.1 OSX" Date: 2010-07-13T20:21:15+09:00 Subject: Re: How to create keybinds? Erik Lindstahl wrote: > Terribly sorry, We use a Ruby CLI interface for a javasystem running on > Linux. What I really do need is a keypressed scanner of some sort.. :) If you want to map F2 (function keys, or alt/control keys) in your CLI interface, you really need an ncurses interface. You would typically have a loop checking for keypress and execute code based on key press. To my knowledge, F2 cannot be bound without ncurses. If you are willing to live with normal menus and key selections, you should look *Highline* for building your CLI interface. -- Posted via http://www.ruby-forum.com/.