The 13 in chr(13) is the ASCII code for carriage return. There are numerous ASCII charts to look at for more codes to use with chr().
- Windows uses a carriage return \ newline (
\r\n) to denote a new line.
- MacOS uses a carriage return only (
\r)
- Linux and Unix generally uses a new line only (
\n).