14 Jan
2014
14 Jan
'14
12:26 a.m.
Hi,
is there a particular reason why xpcc::endl appends only `\n`, and not `\n\r` ? When using a serial device from the command line (using screen, picocom, etc) this gets annoying _really_ quickly, as there are no options to treat a newline as a newline with a carriage return.
Yes, there are. At least for picocom, I don't know about screen. Use "picocom --imap lfcrlf /dev/..."
Are there any concerns over just changing xpcc::endl to append `\n\r` ?
I don't like '\r' :-) But for terminals it might be a useful solution. Perhaps it would be nice to make that changeable via a xpcc define. Cheers, Fabian