printf: \n

03 Dec 2010

Hi,

 

Right now I'm experimenting with printf. With the demo code for this function my terminal prog does not position the cursor to the first position of a new line when a \n is sent.

So I added a \r to the \n which does the trick.

Now, I don't suppose You've got the same problems so what am I doing wrong?

I tried various terminal program settings but without the \r my outputs are not formatted properly.

B.t.w.: I'm using HyperTerminal but with RealTerm it didn't work either.

Thanks.

Christoph

03 Dec 2010

You can set up Putty or TeraTerm to work with just LF (\n).