Active Topics

 


Reply
Thread Tools
Guest | Posts: n/a | Thanked: 0 times | Joined on
#1
Hi all,

I've noticed in the course of my work with serial devices (rfcomm) on the N900, that it by default converts CR line-endings to LF endings. By this I mean that an incoming CRLF from our peripheral device turns into LFLF (double-UNIX newline). I can modify this behaviour with the stty command, but I am curious if there is a rationale for this behaviour. I have tested on Arch Linux (on the desktop), and it does not have this setting by default. Indeed, I cannot think of a reason why one would desire for the CR character only to be converted, as it clearly would lead to duplicate newlines in this situation.

Any information would be greatly appreciated.
Thanks,
 
Reply

Tags
character, newline, serial


 
Forum Jump


All times are GMT. The time now is 20:28.