Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

irb | 6 comments | Create New Account
Click here to return to the 'irb' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: ThreeDayMonk on Oct 09, '03 03:01:31PM

On a related note, if anyone knows how to get the backspace key to work in irb (interactive Ruby), I'll be eternally grateful.

I can edit normally in tcsh and bash, but start an irb session and I just get ^H instead. It does the same in, iTerm and xterm. That rather detracts from the usefulness of an interactive program.

[ Reply to This | # ]
Authored by: Rupa on Oct 10, '03 03:08:58AM

Did you ever try issuing the following command in the terminal session you are having problems:

stty erase <BACKSPACE><ENTER>


[ Reply to This | # ]
Authored by: googoo on Oct 10, '03 01:37:46PM

Have you tired typing the following command (literally)?

stty erase ^h

This should set the erase character to <control>H, which is the backspace.


[ Reply to This | # ]
Authored by: ThreeDayMonk on Oct 14, '03 05:39:50PM

Yeah - that works! Thanks.

[ Reply to This | # ]