B
Barr, Keith
--Boundary_(ID_cjdMwiw/0WtJODjPmwiKBw)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Hi there,
I am new to using Ruby and I am writing my first real programs and I have something I was wonndering about:
I have a menu that I would like users to respond to simply by entering a single character. I have tried both STDIN.getc and gets, but both require a carriage return. Is there a command I haven't found that will actively read STDIN to process a single character as soon as it is entered?
Thanks in advance,
Keith
--Boundary_(ID_cjdMwiw/0WtJODjPmwiKBw)--
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Hi there,
I am new to using Ruby and I am writing my first real programs and I have something I was wonndering about:
I have a menu that I would like users to respond to simply by entering a single character. I have tried both STDIN.getc and gets, but both require a carriage return. Is there a command I haven't found that will actively read STDIN to process a single character as soon as it is entered?
Thanks in advance,
Keith
--Boundary_(ID_cjdMwiw/0WtJODjPmwiKBw)--