From: cjc26@... (Cliff Crawford) Date: 2001-02-21T13:10:02+09:00 Subject: [ruby-talk:11212] Re: better "gets"? * Nikita Proskourine menulis: | Hi, Hi. :) | I am a Ruby newbie and would like to know if there is a way to get user input | in Ruby in such a way that backspace would delete the last typed character. I | know that "gets" in C or Ruby doesn't let you do that, but I miss that | functionality from Basic's "input" function. You can use the readline built-in function. irb(main):001:0> readline blah bladssdf^H^H^H^H^Hh blah. "blah blah blah.\n" -- Cliff Crawford http://www.people.cornell.edu/pages/cjc26/ "huh? Are you all there? You missing some key parts up there? Becoming a English major or an minor? Do you need a annual report? Are you slow today, eh? Did someone sever you parietal lobe?" - Mark