1. 解决backspace和delete的乱码:
在securecrt的 工具栏–>options–>session–>terminal–>emulation–>mapped keys 页面,勾选“other mappings”的两个选项,如下图:
2、python shell 方向键乱码
[root@bigdata003 ~]# python
Python 2.7.15 (default, Jan 24 2019, 15:36:44)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> ^[[A^[[A
如果出现以上情况,那么需要安装一下包,并重新编译python:
yum install readline-devel
./configure –prefix=/usr/local/python2.7
make all
make install
make clean
make distclean