Linux新安装python后出现的按键映射错误问题(SecureCRT环境)
高洛峰
高洛峰 2017-04-17 12:06:28
0
2
336

本已截图,图片突然上传不了,简单说明一下。

本来的python是2.6.6的,在交互式解释器下面输入上下左右退格都是正常的。

后来我编译安装了一个2.7.6的版本,在交互式解释器里上下左右退格就变成乱码了。

像^H,^[[C,^[[D之类的。

请问如何解决?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
小葫芦

The button mapping is normal. What is abnormal is the handling of the buttons.

Your Python was compiled by itself. The automatic configuration script did not detect the readline development file (a software package with a name such as libreadline-dev) during compilation, so it did not compile the readline module. When configuration or compilation is completed, there will be a warning indicating which modules failed to compile.

You can install readline’s development software package and recompile Python.

洪涛

There will be a simulation in the session options -> mapping keys and backspace key settings

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!