Backspace Issue with Highline Gem

Hi,

I am using highline gem for getting input from user. It works fine in
windows with backspace character , but it does not work same in linux. I
used the code i.e.

input=ask("Enter the Input: "){|ch| ch.echo = true}

In Linux environment when I used to press backspace , the output is
something like :

Enter the Input: 33cuttack

After pressing backspace to erase the inputed characters i.e.

Enter

So it removes some part of message also Or some times the whole
message.

Please help me on this…

Let me know for any further information.

Thanks
Khirod Patra

Khirod Patra wrote in post #1077610:

Hi,

I am using highline gem for getting input from user. It works fine in
windows with backspace character , but it does not work same in linux. I
used the code i.e.

input=ask("Enter the Input: "){|ch| ch.echo = true}

In Linux environment when I used to press backspace , the output is
something like :

Enter the Input: 33cuttack

After pressing backspace to erase the inputed characters i.e.

Enter

So it removes some part of message also Or some times the whole
message.

Please help me on this…

Let me know for any further information.

Thanks
Khirod Patra

The above Issue has been resolved :
The code should used instead of the above one is

input=ask("Enter the Input: ") do |ch|
ch.readline=true
end

Through above code It will work in both Windows and Linux. I have not
tested it on AIX . Will update soon…

Thanks
Khirod Patra