search

Home  >  Q&A  >  body text

Linux新安装python后出现的按键映射错误问题(SecureCRT环境)

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

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

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

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

请问如何解决?

高洛峰高洛峰2770 days ago373

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-04-17 12:08:28

    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.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 12:08:28

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

    reply
    0
  • Cancelreply