^h solution appears when Linux uses backspace

Source: Internet
Author: User
Tags delete key

When we interact with the script, the wrong content on the terminal, using the BACKSPACE key, the screen will appear garbled, such as ^h. ^h is not the H key meaning, is backspace.

The main thing is that when your terminal backspace has a problem, it needs to be set.

  There are two ways to resolve this:

1. To use the back Delete key (BACKSPACE), hold down the CTRL key while

2. Setting Environment variables

3, at the beginning of the script can end parameters Stty Erase ^h stty erase ^?

2) under bash: $ stty erase ^?

Or put Stty erase ^? Added to the. Bash_profile.

Under CSH: $ stty Erase ^h

Or add the Stty erase ^h to the. CSHRC

This article is from the "Xu Qiangqiang 1993" blog,

Article Source: http://xuqiangqiang.blog.51cto.com/8290140/1336063

^h solution appears when Linux uses backspace

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.