|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
|||
|
|||
|
Re: printf and newlines
Quote:
|
|
#3
|
||||
|
||||
|
Re: printf and newlines
Quote:
|
|
#4
|
|||
|
|||
|
Re: printf and newlines
Quote:
|
|
#5
|
|||||
|
|||||
|
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.
|
|
#6
|
|||||
|
|||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|