Environment: CENTOS7 Source code compilation Python3.5
Problem: Unable to backspace, delete
Symptom: ^h^h^h^h^h^[[c^[[c occurs when you delete or backspace a grid
Solution:
Yum Install readline*
/usr/local/python3/bin/python3.5
#试验后发现还是不能解决问题
Yum List|grep ' ReadLine '
Yum Install Readline-devel-y
./configure--help
./configure--prefix=/usr/local/python3
Make && make install
The test succeeds after recompiling
Note:
ReadLine is a powerful library that can be configured with the same configuration file as long as the program is used, and the command line is manipulated in the same way, allowing you to easily edit the command line. [2]
Programs that use ReadLine are now mostly Bash, gdb,ftp and so on. ReadLine pay for these programs powerful Emacs-like command-line editing, you can freely bind your keyboard, search command history, etc.
This article is from the "Work Experience" blog, please be sure to keep this source http://chlipeng.blog.51cto.com/8928892/1704495
Centos7 compiled python backspace delete character not recognized