backspace 产生乱码的问题

1。要使用回删键(backspace)时,同时按住ctrl键(一般情况下会有用,如果没用使用下面的方法)
 
2。设定环境变量
 
在bash下:$ stty erase ^?
或者把 stty erase ^? 添加到.bash_profile中。
 
在csh下:$ stty erase ^H
或者把 stty erase ^H  添加到.cshrc中
posted @ 2019-06-22 14:29  halberd.lee  阅读(431)  评论(0编辑  收藏  举报