问题描述
是否可以在终端中键入空字符?
我想做类似的事情:
this is a sentence (null) test123
在Linux中,可以通过按 + 紧跟在终端上,从字面上插入任何特殊字符.由实际的符号. null
通常是^@
,其中^
表示,而@
表示在键盘布局上产生的任意组合.
所以我在键盘上执行: + ,然后是 + + ,我得到一个带有显着背景色的^@
符号.这意味着它是一个特殊字符,而不仅仅是键入^
和@
.
几年后,不同的终端使用键盘布局实现了一些输入变化,这些布局要求按下才能访问. /p>
- + ,然后是 + +
- + ,然后按 + 无,释放.
- + + 后跟 无,释放 + .
- + 释放并再次按并保持两个,然后按下,最后按下.在某些在 + 上实现特殊输入的终端中可以看到.
Is there a way to type the null character in the terminal?
I would like to do something like:
this is a sentence (null) test123
In Linux, any special character can be literally inserted on the terminal by pressing + followed by the actual symbol. null
is usually ^@
where ^
stands for and @
for whatever combination on your keyboard layout that produces .
So on my keyboard I do: + followed by ++ and I get a ^@
symbol with a distinguished background color. This means it's a special character and not just ^
and @
typed in.
Edit: Several years later and a few input variations implemented by different terminals using keyboard layouts that require pressing to access .
- + followed by ++
- + followed by + without releasing .
- ++ followed by without releasing +.
- + release and re-press keeping both + pressed followed by and finally . Seen in some terminals that implement a special input on +.
这篇关于在终端输入空字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!