Linux terminal及Putty中backspace键产生乱码的解决方法

当我们用Xshell登录进入linux后,在普通模式下,对输入进行删除等操作没有问题.

而在telnet连接操作时,按delete,backspace键时会产生^H等乱码问题.

这是因为编码不匹配的问题.

解决方法:

选择edit------>Current Profile

弹出的对话框中,选择Compatibility,如下设置:

Linux terminal及Putty中backspace键产生乱码的解决方法_第1张图片


默认为:

Linux terminal及Putty中backspace键产生乱码的解决方法_第2张图片


改为:

Linux terminal及Putty中backspace键产生乱码的解决方法_第3张图片


这样在terminal中就可以正常使用backspace和delete键了。

如果是Putty出现这样的问题,同样通过设置让其正确,设置方法如图:

Linux terminal及Putty中backspace键产生乱码的解决方法_第4张图片


这样可以正常使用。

关于VT100+:可以参考以下内容:

VT-UTF8, VT100+, and VT100 conventions

Industry terminal definition conventions provide a smooth way for you to send commands from the remote management console--usually Special Administration Console (SAC)-- to the server. These terminal definition conventions ensure a consistent mechanism for managing systems in all states of operation and failure. Windows Server 2003 operating systems use the commands, which are described later in this topic. The firmware, service processors and client terminal software should also use these commands.

The VT100 Terminal Definition is the standard convention used to configure and conduct emergency management tasks with UNIX-based servers. VT100 does not support all keys on the standard PC 101-key layout, however. The VT-UTF8 convention makes available additional keys that are not provided by VT100 for the PC 101 keyboard. With VT-UTF8, you can also use colors and some standardized escape sequences that are commonly used for management tasks. With VT-UTF8, output sent to the serial port can be localized while UNIX interoperability for English is sustained.

For more information about viewing non-English output from Emergency Management Services, see Selecting client terminal software for Emergency Management Services.

VT100+ is a subset of VT-UTF8 that handles only VT100-compatible characters--that is, American National Standards Institute (ANSI) characters 0 through 127. VT-UTF8 is the preferred terminal type for viewing Emergency Management Services output using a terminal emulator, such as HyperTerminal, and for firmware or service processor output. In either case, if VT-UTF8 is not available, your next best choices are to try VT100+ and then VT100, in that order.


你可能感兴趣的:(Linux terminal及Putty中backspace键产生乱码的解决方法)