rails console in replace mode

my rails console is always in replace mode, (when i press left arrow then all character get deleted), how to fix this ?

It would probably be helpful if you told us which operating system you
are using, which terminal s/w, and which version of ruby and rails..

Colin