X-manager using Sqlplus backspace garbled solution

Source: Internet
Author: User
Tags delete key readline sqlplus

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source, otherwise hold the copyright legal responsibility.

Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/45875793

when using Xmanager Remote Connection Linux system, use Sqlplus when found, delete keys are garbled, as follows:

Workaround:

Method One:

[Email protected] ~]# Vi. bash_profile

-- Add Stty Erase ^h

#. Bash_profile

# Get the aliases and functions

If [-f ~/.BASHRC]; Then

       . ~/.bashrc

Fi

# User specific environment and startup programs

Path= $PATH: $HOME/bin

Export PATH

Unset USERNAME

Stty Erase ^h

[[email protected] ~]# source. bash_profile

Modify the instructions sent by the DELETE key, corresponding to the above modification, will ^h implemented as a purge command.

here, of course, you can do this without adding variable environment variables at the middle end . Stty Erase ^h can also play a corresponding effect.

The cause of this is Sqlplus cannot be used in GNU of the ReadLine Library.

about the GNU of the ReadLine libraries can refer to Links:

http://blog.csdn.net/huangyanlong/article/details/45875661

below, to put Xmanage in Delete and the BACKSPACE The Send key is also changed against the environment variable, as follows:

Below you can see the effect, as follows:

Sqlplus Under the production of some garbled, as follows:

Try deleting the Delete key as follows:

Setup is complete.

Method Two:

Another temporary method is to use the DELETE key (backspace), manually add the CTRL key, human implementation of the deletion function.

Summary:

Solve the garbled problem in sqlplus :

1. Add stty erase ^hto . Bash_profile ;

2. Temporary method: Press ctrl+backspace or #stty erase^h

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source, otherwise hold the copyright legal responsibility.

Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/45875793

X-manager using Sqlplus backspace garbled solution

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.