Search Notebooks
USB Serial on Mac (Using GNU Screen)

Page owner: user JP Hastings-Spital

Created 12 Dec 2009.
Last updated 12 Dec 2009

USB Serial on Mac (Using GNU Screen)

Page last updated 12 Dec 2009, by   user JP Hastings-Spital   tag No tags | 1 reply  

As a mac user, you can type

screen /dev/tty.usb[press tab]
to see the output from your mbed's printf("Your text here") commands.

If you're finding that line returns look like this:

Some output
           the next line is here
                                its not returning the line!
Then I've found sending \r\n at the end of lines instead of just \n will fix that. I'm sure this is because of some setting in GNU screen, but I can't yet figure out how to change it!


1 comment

30 Apr 2010

As you can see, the output is continuing on the next line caused by the line feed (\n). In Windows this also means the return of the cariage, however in Linux/Unix this isn't normal.

The best way, also for Windows, is to use the carriage return (\r) if you want the windows new line.

This can be changed in GNU screen, but only by recompiling it, or the configuration of it is hidden.

Please log in to post a comment.