View Single Post
Old 07-28-2008, 07:56 PM   #4
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by monojohnny View Post
Thanks for the correction, indeed it is : \r\n as you said ..
The characters and order dates back to before bidirectional printing. It takes longer to send the print head back to the beginning of the line than it does to move the paper one line down. Therefore, you need to send the commands in this order to speed up the printing. Sending the return by itself was used to support overprinting, underlining, etc.

Of course on an electronic screen you really don't need both characters so some systems drop one or the other. Macs used to use only the \r while Unix uses only the \n. I am not sure what OS X does these days. PC's keep them both but some programs can get confused it they don't see both of them in the correct order.

Dale
DaleDe is offline   Reply With Quote