Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

回车和换行 #63

Open
XXHolic opened this issue Dec 1, 2019 · 0 comments
Open

回车和换行 #63

XXHolic opened this issue Dec 1, 2019 · 0 comments

Comments

@XXHolic
Copy link
Owner

XXHolic commented Dec 1, 2019

引子

零散知识点。

Carriage Return

Carriage Return 中文是回车,经常缩写为 CRreturn,是一个控制字符,用于将设备的位置重置为文本行的开头。在计算机里面,它命令打印机或其他输出系统(如系统控制台的显示)将光标位置移动到同一行的第一个位置。

Line Feed

Line Feed 中文是换行,还称为 Newlineline endingend of line(EOL)line break,是一个控制字符,用来表示文本行的结束和新行的开始。

关系

回车和换行的概念密切相关,可以单独考虑,也可以一起考虑。在打字机和打印机中,需要两个运动轴“向下”和“横向”来在页面上创建新行,尽管机器的设计必须要分别考虑它们,但软件的抽象逻辑可以将它们合并为一个事件。这就是为什么字符编码中的换行可以定义为一个字符(通常称为 CR+LF 或 CRLF)。

一些字符集提供单独的换行符代码。例如,EBCDIC 除了 CRLF 代码之外,提供了 NL 字符代码。Unicode 除了提供 ASCII 的 CRLF 控制代码外,还提供 next line(NEL) 控制代码,以及 line separatorparagraph separator 标记的控制代码。

56-code

表头依次是:系统 、 字符编码 、 缩写 、 十六进制 、 十进制 、 转义字符。

参考资料

🗑️

纯属瞎扯,如有雷同,纯属巧合。

最近看了《克劳斯:圣诞节的秘密》,感觉挺有意思的,里面讲的圣诞节由来,之前没有看过或听过。故事情节,让传说变的更加贴近实际,例如在天上拉雪橇只是一次意外。但里面又有加入了一些魔幻的元素,例如男主与克劳斯的相遇,最后克劳斯的消失都带有魔幻色彩。总之整体上是一个老少咸宜的作品。

url-local-poster

@XXHolic XXHolic added the concept label Dec 1, 2019
@XXHolic XXHolic mentioned this issue Dec 8, 2019
@XXHolic XXHolic removed the concept label Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant