Serial debugging

Debugging statements over the serial interface don't seem to include carriage returns, just line feeds (dos/windows centric). On Linux, this results in lines doing this:

Hello this is a line

this is the next line

boy this is annoying!

There doesn't seem to be an easy way to get gnu screen or minicom to insert CRs. Others have suggested ending strings with a "\r\n" but I really don't want to have to break the normal programming convention of using "\n".

I found that GtkTerm aka "Serial Port Terminal" available in Ubuntu's software center does the right thing automagically and inserts CRs before a newline.


0 comments

You need to log in to post a comment