如何使用 MacBook 输入 0x08 ascii 字符?
我写这个问题是因为一个看不见的小问题占用了我数小时的虚拟搜索时间,而这些时间就被浪费了(这是这个问题:CSS:这两部分之间有什么区别吗?)
有谁知道这个角色0x08(ASCII 中的“退格”)可以使用 MacBook 和简单的 IDE(我使用“Coda”)写入文本吗?
MacBook 上无法按 Alt + 08(MacBook 键盘上没有数字键部分)。
怎么会发生呢?
I'm writing this question because one little invisible problem has taken from me hours and hours of dummy searchings, and the time just has been wasted (here is that question: CSS: Is there any difference between these two parts?)
Does anybody know how the character 0x08 ("backspace" in ASCII) can be written into a text using a MacBook and a simple IDE (I use the "Coda")?
There is no ability to press Alt + 08 on MacBook (there is no digital keys part on the MacBook's keyboard).
How it can happen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你复制了吗?从任何地方粘贴它?因为我知道的唯一方法 - 除了 SCFrench 建议之外 - 是通过键入以下内容在终端中启用此功能:
stty擦除
SPACE CTRL+V CTRL+H RETURNDid you copy & paste it from anywhere? Because the only way I know - apart from what SCFrench suggested - is to enable this in Terminal by typing:
stty erase
SPACE CTRL+V CTRL+H RETURN不确定这是否是最简单的方法,但是:
由于该字符是不可打印的,因此它实际上不会在文本编辑器中显示任何内容,但是(至少在 TextEdit 中)您会发现必须多次按向左或向右箭头键才能越过它。我还通过转储十六进制文件确认它包含 08 字节。
您还可以使用此技术在语言和文本选项卡中设置文本替换。文本系统首选项面板。
Not sure if this is the easiest way, but:
Since the character is non-printable, it doesn't actually show anything in the text editor, but (at least in TextEdit) you will see that you have to hit the left or right arrow key more than once to move past it. I also confirmed by dumping the file in hex that it contains a 08 byte.
You could also use this technique to set up a Text Substitution in the Text tab of the Language & Text system preference panel.
Shift + 向上箭头 + 删除/退格键。这是一个错误。
http://www.openradar.me/5288750
Shift + Up Arrow + Delete/Backspace. It's a bug.
http://www.openradar.me/5288750