1. The origin of carriage return and line feed
First, clarify two concepts:
Press ENTER Cr-move the cursor to the beginning of the current row.Wrap lf-move the cursor vertical to the next line. (Instead of moving to the beginning of the next line, that is, do not change the horizontal position of the cursor)
Before the computer appeared, there was a kind of thing called teletype model 33, which also came from the TTY concept in Linux/Unix. It can contain 10 characters per second. But ther
disappear at the end of the terminal ...".
Is the general impression of a terminal. The background behind this terminal is really a sea of ocean...
We should first consider the following issues:
Why do we need to invent a terminal instead of using a graphical interface at the beginning?
After all, the mouse + graphic interface is more intuitive.
Is it just for the purpose of installing high-end professionals that they deliberately make such a complicated situation, so that people feel
Http://casec12.javaeye.com/blog/523160
Today, I have finally figured out the origins and differences between carriage return and line feed.Before the computer appeared, there was a kind of device called teletype model 33, which can contain 10 characters per second. But there is a problem, that is, when a line breaks a line, it takes 0.2 seconds, just two characters. If a new character is passed in the 0.2 s, the character will be lost.
As a result, the developers thought of a way to solve this p
think of a way to solve this problem, is to add two after each line to end the character. One is called "carriage return", which tells the typewriter to position the printhead at the left border, and the other is called "line break", telling the typewriter to move the paper down one line. This is the origin of "line break" and "carriage return", from their English name can also be seen in one or two. Later
0.2 seconds, just two characters. If a new character is passed in the 0.2 s, the character will be lost.
As a result, the developers thought of a way to solve this problem, that is, adding two end characters after each line. One is "enter", which tells the typewriter to position the print head on the left boundary, and the other is "line feed", which tells the typewriter to move the paper down one line. Th
can't do anything about it. Let's let you disappear at the end of the terminal ...".
Is the general impression of a terminal. The background behind this terminal is really a sea of ocean...
We should first consider the following issues:
Why do we need to invent a terminal instead of using a graphical interface at the beginning?
After all, the mouse + graphic interface is more intuitive.
Is it just for the purpose of installing high-end professionals that they deliberately make such a compl
coming in this 0.2 seconds, then this character will be lost.So, the developers think of a way to solve this problem, is to add two after each line to end the character. One is called "carriage return", which tells the typewriter to position the printhead at the left border, and the other is called "line break", telling the typewriter to move the paper down one line.This minute-and-minute legend is not tex
Summary of \ r and \ n
\ R indicates carriage return and \ n indicates line feed. In Windows, the input key will automatically become \ r \ n.
In Windows, \ r \ n is also required for line breaks. Why do we need two characters? Because Windows adopts the traditional typewriter model, there is a small story:
Before the computer appeared, there was a kind of device called Teletype Model 33, which can contain 10 characters per second. But there is a prob
---- Start
Many people cannot figure out what is carriage return and line feed. The following briefly introduces the origins and differences of these two concepts.
Before the advent of a computer, there was a kind of thing called a telex typewriter that allowed 10 characters per second. But there is a problem, that is, when a line breaks a line, it takes 0.2 seconds, just two characters. If a new character is passed in the 0.2 s, the character will be
problem by adding two characters to the end after each line. One is called "carriage return", which tells the typewriter to position the print head at the left edge, and the other is called "line-wrapping", telling the typewriter to move the paper down one line. This is the "line" and "return" of the history, from their English name can also be seen in one or two.
Later, the computer was
The difference between Linux and Windows return line break
source of the problem: "Carriage return" (carriage return) VS "line feed"Before the computer appeared, there was a gadget called a telex typewriter (teletype Model 33) that could play 10 characters per second. But it has a problem, that is, when the line is finished, it will take 0.2 seconds to hit two characters. If there are new characters coming in this 0.2 seconds, then this character wil
The origins and differences between the two concepts of carriage return "(carriage return) and" line feed ".Before the computer appeared, there was a thing called a telex typewriter (the concept of TTY under the teletype Model 33,linux/unix), which can be played 10 characters per second. But it has a problem, that is, when the line is finished, it will take 0.2 seconds to hit two characters. If there are new characters coming in this 0.2 seconds, then
two characters. If there are new characters coming in this 0.2 seconds, then this character will be lost. So, the developers think of a way to solve this problem, is to add two after each line to end the character. One is called "carriage return", which tells the typewriter to position the printhead at the left border, and the other is called "line break", telling the typewriter to move the paper down one
Original: http://hane00.blog.163.com/blog/static/1600615220126204446809/' \ R ' is a carriage return, ' \ n ' is a newline, the former causes the cursor to start at the beginning of the line, which causes the cursor to move down one grid. The usual enter is two to add together. Turn to an article below.Carriage return and line breakToday, I finally figured out the origins and differences between the "carriage return" (carriage return) and the "line feed" concept.Before the computer appeared, the
future design work.
From 1878 to the production of Remington 2nd typewriter to 1984 the first generation of Apple Macintosh pc to 2003 BlackBerry launched the full keyboard smartphone and then to 2007 Apple's first IPhone smartphone virtual keyboard.
From the 70 's human-computer interaction design of the last century
Human interaction is so basic and natural, and tools are still evolving, and we have been in the process of human-com
model 33, which can contain 10 characters per second. But there is a problem, that is, when a line breaks a line, it takes 0.2 seconds, just two characters. If a new character is passed in the 0.2 s, the character will be lost.
As a result, the developers thought of a way to solve this problem, that is, adding two end characters after each line. One is "enter", which tells the typewriter to position the print head on the left boundary, and the other
The origins and differences between carriage return and line feed.
Before the computer appeared, there was a kind of thing called teletype model 33, which also came from the TTY concept in Linux/Unix. It can contain 10 characters per second. But there is a problem, that is, when a line breaks a line, it takes 0.2 seconds, just two characters. If a new character is passed in the 0.2 s, the character will be lost.
As a result, the developers thought of a way to solve this problem, that is, adding
In Windows:'/R': Press enter to return to the beginning of the current row, instead of the next row;'/N' line feed, switch to the next line at the current position, instead of returning to the first line;
The origins and differences between carriage return and line feed.Not displayed on the computerPreviously, there was a teletype Model33. The tty concept in Linux/Unix also comes from this). It can contain 10 characters per second. However, the problem is that it takes 0.2 seconds to finish a li
second. But there is a problem, that is, when a line breaks a line, it takes 0.2 seconds, just two characters. If a new character is passed in the 0.2 s, the character will be lost. As a result, the developers thought of a way to solve this problem, that is, adding two end characters after each line. One is "enter", which tells the typewriter to position the print head on the left boundary, and the other is "line feed", which tells the
prepared materials.
Supplement to 2.1:Before the computer appeared, there was a kind of device called teletype model 33, which can contain 10 characters per second. But there is a problem, that is, when a line breaks a line, it takes 0.2 seconds, just two characters. If a new character is passed in the 0.2 s, the character will be lost.As a result, the developers thought of a way to solve this problem, that is, adding two end characters after each line. One is "enter", which tells the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.