From: Thomas Aaron Date: 2006-11-29T05:48:31+09:00 Subject: Trapping keystrokes Hi, guys. I'm a Python guy who is considering switching to Ruby. Quick question: In python in order to trap individual keystrokes in text mode, you have to import the curses library and write a program that initializes a window in your terminal...blah.blah.blah. What I really need is just a simple command that captures a single keystroke. Kinda like the old BASIC command: inkey$ Python does not seem to have an equivalent (other than all of the curses rigamorole). Does Ruby have a command that does this? Thank you. Best, Tom -- Posted via http://www.ruby-forum.com/.