MacOSX Terminal/GNU Screen Question

24 Oct 2010

When using mbed on macosx, the '\n' character comes out as linefeed.

So I get

this sort

of thing.

 

Has anybody resolved this at the macosx/screen end of things?

Many Thanks

Ian Hunter

 

 

 

 

 

24 Oct 2010

Ah! the formatting of the previous posting isnt what I had expected :-)

The problem is that macosx terminal and/or screen interpret '\n' as a vertical shift, with a carriage return. The obvious answer is to do printf("\n\r"), which in my software is fine. The problem is when I import other peoples projects, I would like '\n' to automatically be '\n\r' in terminal/screen.

[I am aware this is not strictly an mbed issue, but macosx/screen is recommended for serial/USB, so I'm hoping somebody can provide pointers to fixing this]

Ian

24 Oct 2010

I can't figure out how to do this in GNU screen, or in minicom. I'd really, really like a solution!

27 Oct 2010

Has been discussed in the following forum post:

http://mbed.org/forum/helloworld/topic/932/

haven't found the solution for screen/cat/...  But the SerialTerminal.app.zip mentioned in that link works ok..

27 Oct 2010

Fabo! Thanks.

I missed this in my search.

SerialTerminal.app.zip Works a treat

Ian