Use sqlplus return output "^ H" in X-manager to solve the problem. x-managersqlplus
Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost them. Otherwise, the copyright will be held legally responsible.
Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/45875793
After using xmanager to remotely connect to the linux system, sqlplus finds that the deletion key is garbled as follows:
Solution:
Method 1:
[Root @ bjbank ~] # 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
[Root @ bjbank ~] # Source. bash_profile
Modify the instruction sent by the delete key, which corresponds to the preceding modification and uses ^ H as the clear command.
Of course, you can temporarily execute stty erase ^ H in the middle end without adding environment variables.
This is because the GNU readline library cannot be used in sqlplus.
For more information about the GNU readline library, see the link:
Http://blog.csdn.net/huangyanlong/article/details/45875661
Next, you need to change the send keys of delete and backspace in xmanage against the environment variables as follows:
The following figure shows the effect:
Make some garbled characters in sqlplus, as follows:
Try the delete key, as shown below:
The settings are complete.
Method 2:
Another temporary method is to manually add the ctrl key when using the delete key (backspace) to manually implement the delete function.
Summary:
Solve the garbled problem in sqlplus:
1. Add stty erase ^ H to. bash_profile;
2. Temporary method: press CTRL + Backspace or # stty erase ^ H
Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost them. Otherwise, the copyright will be held legally responsible.
Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/45875793