T
Thomas Aaron
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
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