Thread: Newline broken?
View Single Post
  #4   Spotlight this post!  
Unread 01-02-2008, 02:23
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Newline broken?

It depends on what you're using to view it. On Windows, line endings are \r\n (A carriage return and a linefeed). Just a \r is incorrect, but I don't complain if it works. Linux is just a \n, nuff said. I think IFI Loader's viewing thing wants a \r\n (or at least an \r) and the Hyperterminal just wants an \n... or maybe it was the other way around. It has nothing to do with c18 or mplab, it has to do with the client you're using to view it. c18 doesn't care what it's sending. =)

http://en.wikipedia.org/wiki/End_of_line
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);