1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

改行コードについて

Posted at

改行コードとは

改行を表す制御文字のこと。

改行コードの種類

|改行コード名|意味|改行コード|OS|
|:---|:---|:---|:---|:---|:---|
|CR(Carriage Return)|復帰、カーソルを左端の位置に戻すこと|\r|Mac OS(9以前)|
|LF(Line Feed)|改行、カーソルを新しい行に移動すること、縦移動|\n|UNIX系全般|
|CRLF|カーソルを左端の位置に戻して改行すること|\r\n|Windows系全般|

動画でみるキャリッジリターン

タイプライターのキャリッジが文字を打つごとに移動し、最終位置になるとベルがなる。
キャリッジを元の位置に戻す動作がわかる。

【Typewriter - Brandenburger Symphoniker】
https://www.youtube.com/watch?v=nW8dGwa2zRw

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?