-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
19 lines (13 loc) · 939 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
title: CRLF
slug: Glossary/CRLF
page-type: glossary-definition
---
{{GlossarySidebar}}
**CR and LF** are [control characters](https://en.wikipedia.org/wiki/Control_character) or [bytecode](https://en.wikipedia.org/wiki/Bytecode) that can be used to mark a line break in a text file.
- CR = **Carriage Return** (`\r`, `0x0D` in hexadecimal, 13 in decimal) — moves the cursor to the beginning of the line without advancing to the next line.
- LF = **Line Feed** (`\n`, `0x0A` in hexadecimal, 10 in decimal) — moves the cursor down to the next line without returning to the beginning of the line.
A CR immediately followed by a LF (CRLF, `\r\n`, or `0x0D0A`) moves the cursor to the beginning of the line and then down to the next line.
## See also
- [Newline](https://en.wikipedia.org/wiki/Newline#In_programming_languages) on Wikipedia
- [Carriage return](https://en.wikipedia.org/wiki/Carriage_return#Computers) on Wikipedia