English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

what is the cartrage return code in ASCII (8 bit)

2006-09-11 11:20:07 · 1 answers · asked by Rami 5 in Computers & Internet Other - Computers

of course i mean code number

2006-09-11 11:20:47 · update #1

IN WIKIPIDIA THEY SAY THAT IT'S ONLY 13
whatis linefeed and why would i need it

2006-09-11 11:30:41 · update #2

John W
please feel free to visit
http://www.lammertbies.nl/comm/info/ascii-characters.html

2006-09-11 14:01:07 · update #3

1 answers

For an ASCII carriage return, the code is 0x0D, or decimal 13. But this won't work on it's own in most cases. The normal way, is to supply 0x0D, 0x0A, which is Carriage Return-Line Feed (CR-LF). Decimal equivalent 13, 10.

Not sure why you need the Line Feed...but that's just the way it is. I guess it's just a leftover from the days when printers where the main output of computers. Strictly speaking, if you really really just need the carriage return, then, yes, it's 13. But in most computer files, you'll see 0x0d, 0x0a.

Thinking about it...Carriage Return sends the print head back to the left, and Line Feed advances the 'printer' by one row. It's the way things generally work on screen too.

2006-09-11 11:28:17 · answer #1 · answered by John W 3 · 0 0

fedest.com, questions and answers