Saari Development

Ali Rizvi's Technical Blog as a Professional Software Development Engineer

*nix shell: stty for terminal line settings

leave a comment »

I don’t think this is a new discovery but just a reminder for myself when I encounter this problem again.

I encountered this problem when I was using irb (interactive ruby shell) and for some odd reason when I typed backspace it was printing ^H and worse when I hit enter irb crashes. When I returned to my shell backspace seems to be working fine.

This is not exclusive problem with irb although the crashing part is but the solution I think would work in cases where shell is demonstrating this wierd behavior.

I did a quick *nix command:


stty

and displayed that I have


erase ^?

In order to fix this problem here is what I did:


stty erase ^H

Note:^H are not the two characters but typed Ctrl-V Ctrl-H

Advertisements

Written by imsaar

October 9, 2006 at 8:12 pm

Posted in general

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: