On Tuesday 20 February 2001 23:10, you wrote:
> * Nikita Proskourine <nop1 / cornell.edu> 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"

I get the following:

adamant:~$ irb
irb(main):001:0> readline
This is a test^H^H^H^Hsimple test.
"This is a test\010\010\010\010simple test.\n"
irb(main):002:0> exit
 
adamant:~$

so I am not getting the buffer to reflect deletions and I still get ^H in 
user input (ugly). I am using ruby-1.6.2 from Debian packages.

-- 
Nikita Proskourine / Cornell University
"Gravitation cannot be held responsible for people falling in love."
-- Albert Einstein