![]() |
printf and newlines
I'm using minicom in unix to read back the data from printf... How the heck do I get a new line so I can get a scrolling set of values rather than just a single line that always overwrites itself? I've tried all permutations of \r and \n together. Do I need to set my terminal to something specific, vt100 or ansi or something?
|
Re: printf and newlines
Quote:
|
Re: printf and newlines
Quote:
|
Re: printf and newlines
Quote:
|
Re: printf and newlines
I would guess that mplab uses ansi (ascii, 1 byte) letters. It's based on the compiler, since it translates strings to binary. that's also where \n stuff comes from.
|
Re: printf and newlines
Quote:
I glanced at printf_lib.c and saw some stuff about \r, so there's hope. Have a look at printf_lib.c -Norm |
| All times are GMT -5. The time now is 04:24. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi