转载链接:
http://unix.stackexchange.com/questions/13413/force-telnet-ssh-to-use-crtl-h-for-backspace
#!/usr/bin/expect
#Name this file as kbdfix and make it executable in your path
eval spawn -noecho $argv
interact {
\177 {send "\010"}
"\033\[3~" {send "\177"}
}
kbdfix telnet 192.168.12.117 2006
本文介绍了一个脚本解决方案,用于在Telnet和SSH会话中强制使用Ctrl+H作为删除键,解决了默认使用Backspace键导致的问题。

被折叠的 条评论
为什么被折叠?



