2

xshell中backspace等特殊按键出现^[[A ^[[B ^[[C ^[[D

 3 years ago
source link: https://www.wencst.com/archives/338
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

xshell中backspace等特殊按键出现^[[A ^[[B ^[[C ^[[D

作者: wencst 分类: linux,python,Uncategorized 发布时间: 2016-10-04 20:40 阅读: 7,590 次

对于shell中出现特殊字符

在xshell中设置

选择utf-8,然后重新打开shell,就可以恢复过来了

对于python中出现特殊字符

但是linux中python命令行打开时,即使设置了上面的编码格式,依旧会出现按↑↓←→以及退格键还会出现^[[A ^[[B ^[[C ^[[D
安装yum -y install readline-devel,然后在重新编译python
./configure
make
make install
ln -s /home/Python-3.4.1/python /usr/bin/python
然后再执行python时,就不会出现乱码的情况了。

如果文章对您有用,扫一下支付宝的红包,不胜感激!

欢迎加入QQ群进行技术交流:656897351(各种技术、招聘、兼职、培训欢迎加入)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK