总结
从本地到远程sever,经过了多个编码环节。从按下一个键到远程server最终反应,经历的过程:
本地terminal类型和编码 -> linux下terminal类型和编码
- ctrl+h的编码
ascii中Backspace的值为010(八进制),而ASCII values can be represented in several equivalent ways.
而ctrl+h的值也为010。
terminal区分不了二者,因此输入以ascii编码,则ctrl+h变为Backspace;而输入不以ascii编码,Backspace也会显示成^H,即ctrl+h
- F1键
terminal类型的选择也会影响快捷键。
Xshell中,文件–属性–键盘–功能键类型 选择xterm R6,则VIM中可以绑定F1;如果选linux,则不可以
问题:
为什么BS无法删除,而是想左移动?
为什么在执行程序进行输入时,按下BS显示的是^H?
vimrc
|
|
In debian (My Japan VPS), you must relog to enable this.
答案
知乎:
|
|
Terminal
- VT100
Xterms on the other hand, emulate the vt100 terminal, which didn’t have a [Delete].
|
|
VT series have their own keyboard: http://www.vt100.net/
A personal computer can run** terminal emulator** software that replicates the function of a terminal, sometimes allowing concurrent use of local programs and access to a distant terminal host system.